CentOS sshd_config部分配置说明
时间:2010-09-21 来源:Ratooner
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 ]
相关阅读 更多 +