概述
最近发现用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连接可以发现速度变快了
转载于:https://blog.51cto.com/qiushi/1690174
最后
以上就是无奈大门为你收集整理的Xshll 登陆linux很慢解决方式的全部内容,希望文章能够帮你解决Xshll 登陆linux很慢解决方式所遇到的程序开发问题。
如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复