1. 编辑SSH配置文件
vim /etc/ssh/sshd_config
Protocol2 ←允许SSH2方式的连接
ServerKeyBits 1024 ← ServerKey强度
PermitRootLogin yes ← root用户登录
PasswordAuthentication yes ←密码方式登录
PermitEmptyPasswords no ←空密码方式登录
2. 重启服务并配置自启
service sshd restart
chkconfig sshd on
网友评论