Created
February 7, 2014 07:20
-
-
Save JingwenTian/8858531 to your computer and use it in GitHub Desktop.
禁止root用户ssh登陆
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
vi /etc/ssh/sshd_config | |
#把 PermitRootLogin yes 改为 PermitRootLogin no | |
#重启sshd服务 | |
service sshd restart |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment