美文网首页
配置CentOS SSH

配置CentOS SSH

作者: 清霆 | 来源:发表于2019-08-05 14:53 被阅读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

相关文章

网友评论

      本文标题:配置CentOS SSH

      本文链接:https://www.haomeiwen.com/subject/gqdmdctx.html