连接慢的主要原因是DNS解析导致
解决方法:

1、在ssh服务端上更改/etc/ssh/sshd_config文件中的配置为如下内容:
UseDNS no
# GSSAPI options
GSSAPIAuthentication no
然后,执行/etc/init.d/sshd restart重启sshd进程使上述配置生效,在连接一般就不慢了。

相关文章:

  • 2022-12-23
  • 2021-06-18
  • 2021-12-03
  • 2022-12-23
  • 2022-01-21
  • 2021-12-28
  • 2021-08-15
猜你喜欢
  • 2021-12-14
  • 2021-11-27
  • 2022-12-23
  • 2021-09-27
  • 2022-12-23
  • 2021-07-03
  • 2021-06-26
相关资源
相似解决方案