配置静态IP
Ubuntu16.04 修改超管账户默认密码
# 修改root账户默认密码
sudo passwd
Ubuntu16.04安装SSH
# 安装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用户可登录
# 变更SSH配置文件
sudo nano /etc/ssh/sshd_config
PermitRootLogin yes
PasswordAuthentication yes
# 重启SSH
sudo systemctl restart ssh