文章

服务器ssh常用配置

密码登录

打开配置文件

1
vim /etc/ssh/sshd_config

允许root认证登录

1
PermitRootLogin yes

允许密码认证

1
PasswordAuthentication yes

重启ssh服务

1
systemctl restart sshd

密钥登录

TODO

本文由作者按照 CC BY 4.0 进行授权