美文网首页
启动root登录SSH功能

启动root登录SSH功能

作者: 大馋愚 | 来源:发表于2017-02-17 14:56 被阅读0次

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的分别。

相关文章

网友评论

      本文标题:启动root登录SSH功能

      本文链接:https://www.haomeiwen.com/subject/acqlwttx.html