1.修改/etc/ssh/sshd_config的配置文件,找到#PasswordAuthentication yes,把前边的#去掉
2.找到#PermitRootLogin prohibit-password,将其改为PermitRootLogin yes,并将其前边的#去掉
3.重启ssh:/etc/init.d/ssh restart
4.设置开机自动启动:update-rc.d ssh enable
5.重启系统即可
1.修改/etc/ssh/sshd_config的配置文件,找到#PasswordAuthentication yes,把前边的#去掉
2.找到#PermitRootLogin prohibit-password,将其改为PermitRootLogin yes,并将其前边的#去掉
3.重启ssh:/etc/init.d/ssh restart
4.设置开机自动启动:update-rc.d ssh enable
5.重启系统即可