配置CentOS SSH

2019-08-05  本文已影响0人  清霆

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

上一篇 下一篇

猜你喜欢

热点阅读