配置静态IP

Ubuntu16.04 修改超管账户默认密码
shell
# 修改root账户默认密码
sudo passwd
Ubuntu16.04安装SSH
shell
# 安装ssh服务:
sudo apt-get install ssh
# 启动SSH服务:
sudo /etc/init.d/ssh start
# 开机自启
sudo systemctl enable ssh
# 如无法连接,开通22端口:
firewall-cmd --add-port=22/tcp --permanent
firewall-cmd --reload
Unbuntu16.04配置ROOT用户可登录
shell
# 变更SSH配置文件
sudo nano /etc/ssh/sshd_config
PermitRootLogin yes
PasswordAuthentication yes
shell
# 重启SSH
sudo systemctl restart ssh
MobaXterm远程连接
