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

 

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

 

然后,禁用 密码登陆。

vi /etc/ssh/sshd_config

 

修改 PasswordAuthentication yes/no

重启服务 service sshd restart

相关文章:

  • 2022-12-23
  • 2021-08-14
  • 2021-09-02
  • 2021-11-01
  • 2022-01-08
  • 2021-08-03
  • 2021-11-09
  • 2021-11-21
猜你喜欢
  • 2021-07-01
  • 2021-06-06
  • 2021-08-29
  • 2022-12-23
  • 2022-02-21
  • 2021-05-24
  • 2021-12-05
相关资源
相似解决方案