我装在Hyper-V 下

今天安装虚拟机,发现SSH本地连接上去,速度非常慢,慢的难以忍受。

后来到网上查了下,尝试了一种办法,效果还可以,特发上来给大家共享。

[root@localhost~]vi /etc/ssh/sshd_config

修改

UseDNS yes

UseDNS no

(如果没有这一项的话,自己手动添加上去也行)

GSSAPIAuthentication yes

修改为

GSSAPIAuthentication no

(如果没有这一项的话,自己手动添加上去也行)

然后重新启动sshd

service sshd restart

然后断开服务器,重新连接,变快。

 

测试连接速度的命令: # time ssh root@localhost  exit

相关文章:

  • 2022-02-25
  • 2021-05-18
  • 2021-12-12
  • 2021-09-16
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-08-26
  • 2021-09-30
  • 2022-12-23
  • 2021-10-02
  • 2021-07-29
  • 2021-04-17
  • 2021-10-12
相关资源
相似解决方案