首页 > 系统服务 > 详细

Xshll 登陆linux很慢解决方式

时间:2015-08-31 17:29:01      阅读:283      评论:0      收藏:0      [点我收藏+]

最近发现用Xshell登陆我自己的虚拟机很慢,找了下资料:

ssh的服务端在连接时会自动检测dns环境是否一致导致的,修改为不检测即可,操作如下:

修改文件:/etc/ssh/sshd_config

找到UseDNS

UseDNS yes  --->默认为注释行

UseDNS no  --->把注释打开,改为no,然后重启ssh服务即可

[root@qiushilinux ~]# vim /etc/ssh/sshd_config 
/UseDNS
120 #ClientAliveCountMax 3
121 #ShowPatchLevel no
122 UseDNS no
123 #PidFile /var/run/sshd.pid
124 #MaxStartups 10:30:100
125 #PermitTunnel no
126 #ChrootDirectory none
127 
128 # no default banner path
129 #Banner none
130 
131 # override default of no subsystems
132 Subsystem       sftp    /usr/libexec/openssh/sftp-server
133 
134 # Example of overriding settings on a per-user basis
:set nu

改完之后重启sshd服务

[root@qiushilinux ~]# service sshd restart
停止 sshd:                                                [确定]
正在启动 sshd:                                            [确定]

重新用xshell连接可以发现速度变快了

Xshll 登陆linux很慢解决方式

原文:http://qiushi.blog.51cto.com/6450559/1690174

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