照以下步骤输入命令并操作: linux服务器
1 、修改 sshd_config 文件,命令为: vi /etc/ssh/sshd_config
2 、将 #PasswordAuthentication no 的注释去掉,并且将 NO 修改为 YES
3 、将 #PermitRootLogin yes 的注释去掉
4 、重新启动 SSH 服务,命令为: service sshd restart
5 、验证 SSH 服务状态,命令为: service sshd status
下载 putty


好的可以了,输入用户名密码,登陆成功了!
下一步设置sshd开机自动运行。chkconfig sshd on

重启一下,就可以了
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/31516067/viewspace-2690893/ ,如需转载,请注明出处,否则将追究法律责任。