解决步骤:

先备份/etc/ssh/sshd_config,备份命令为

cp /etc/ssh/sshd_config /etc/ssh/sshd_config.bak

1.su (以root用户登录)

2.vi /etc/ssh/sshd_config (编辑配置文件)

3.输入 / ,查找GSSAPIAuthentication 赋值为no

4.输入 /,查找UseDNS,赋值为 no(该项默认不启用的,要把前面的#删除掉)

5.最后输入!wq保存文件并退出

6.重启systemctl restart sshd

sed -i 's#GSSAPIAuthentication yes#GSSAPIAuthentication no#' /etc/ssh/sshd_config
sed -i 's|#UseDNS yes|UseDNS no|g' /etc/ssh/sshd_config
systemctl restart sshd

相关文章:

  • 2021-11-06
  • 2022-12-23
  • 2021-09-01
  • 2021-07-16
  • 2021-06-01
  • 2021-05-12
  • 2021-09-13
猜你喜欢
  • 2021-07-17
  • 2021-05-27
  • 2022-12-23
  • 2021-08-18
  • 2022-12-23
相关资源
相似解决方案