CentOS sshd_config部分配置说明

vi /etc/ssh/sshd_config (对/etc/ssh/sshd_config文件的相关内容做如下修改)

Protocol 2 (仅使用SSH2)
PermitRootLogin no (不允许root用户使用SSH登陆)
ServerKeyBits 1024 (将serverkey的强度改为1024)
PasswordAuthentication no (不允许使用密码方式登陆)
PermitEmptyPasswords no   (禁止空密码进行登陆)

 

 /etc/rc.d/init.d/sshd restart (重启ssh服务)
Stopping sshd:                                             [ OK ]
Starting sshd:                                             [ OK ]

posted @ 2010-09-21 11:35  Ratooner  阅读(4429)  评论(0)    收藏  举报