开启root用户使用密码登陆
vim /etc/ssh/sshd_config
将 PermitRootLogin without-password(第33行) 改为 PermitRootLogin yes 并去掉前面的注释符号(#)
#PasswordAuthentication yes(第57行)的注释去掉,如果是no就改为yes
保存后重启
开启SSH服务
service ssh start
查看SSH启动状态
service ssh status
设置SSH开机自启
update-rc.d ssh enable