1.切换到root用户
#chmod +w /etc/ssh/sshd_config
2.将sshd_config文件下的PermitRootLogin no改成PermitRootLogin yes
#vi /etc/ssh/sshd_config
3.重启ssh服务
# service sshd restart
4.将ssh client
的文件/etc/ssh/ssh_config
以及 ssh server
的文件/etc/ssh/sshd_config
中的GSSAPIAuthentication yes
改成 GSSAPIAuthentication no
。注意/etc/ssh/ssh_config
和/etc/ssh/sshd_config
的分别。
网友评论