禁用 linux的 密码登陆

如果我们只允许 证书登陆 不允许密码登陆。

首先配置证书邓丽,我的上一篇文章有些。

然后,禁用 密码登陆。

vi /etc/ssh/sshd_config

修改 PasswordAuthentication yes/no

重启服务 service sshd restart

猜你喜欢

转载自www.cnblogs.com/cxygg/p/10044794.html