首页 > 系统服务 > 详细

xshell连接linux慢

时间:2019-09-18 12:23:37      阅读:111      评论:0      收藏:0      [点我收藏+]

新搭的centos 7.2系统,用xshell连接时,需要等待很长时间才弹出用户密码登录框,并且登录进去反应也很慢,于是网上百度了一下。

发现原因是由于ssh服务端在连接时会自动检测dns环境是否一致,只需要改为不检测即可解决该问题。

操作步骤如下:

1,修改/etc/ssh/sshd_config

vim /etc/ssh/sshd_config
    UseDNS yes  --->默认为注释行
    UseDNS no  --->把注释打开,改为no

2,重启ssh服务

systemctl restart sshd    # linux 7 版本
或
service sshd restart      # linux 6 版本
或
/etc/init.d/sshd restart

xshell连接linux慢

原文:https://www.cnblogs.com/wainilei/p/11540546.html

(2)
(2)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!