我是靠谱客的博主 无奈大门,这篇文章主要介绍Xshll 登陆linux很慢解决方式,现在分享给大家,希望可以做个参考。

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

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

修改文件:/etc/ssh/sshd_config

找到UseDNS

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

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

复制代码
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
[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服务

复制代码
1
2
3
[root@qiushilinux ~]# service sshd restart 停止 sshd:                                                [确定] 正在启动 sshd:                                            [确定]

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

转载于:https://blog.51cto.com/qiushi/1690174

最后

以上就是无奈大门最近收集整理的关于Xshll 登陆linux很慢解决方式的全部内容,更多相关Xshll内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(59)

评论列表共有 0 条评论

立即
投稿
返回
顶部