解决ssh连接linux服务器速度慢 |
您所在的位置:网站首页 › 服务器ssh连接慢 › 解决ssh连接linux服务器速度慢 |
核心: 服务器端sshd配置文件 /etc/ssh/sshd_config 看是否有如下的两条配置条目 GSSAPIAuthentication no UseDNS no如果前面带#,请把#删掉,或者新添加入这样两行。 然后重启sshd服务,或者重启服务器也可以。 注意是文件 /etc/ssh/sshd_config 而不是/etc/ssh/ssh_config
ssh 登录远程服务器,速度非常慢,通过网上查询,发现有一个参数 -v 可以输出显示连接的具体消息。于是连接加上这个参数连接 [feng@fsc ~]$ ssh -v foo.path8.net OpenSSH_5.3p1, OpenSSL 1.0.0-fips 29 Mar 2010 debug1: Reading configuration data /etc/ssh/ssh_config debug1: Applying options for * debug1: Connecting to v.path8.net [64.120.xxx.xxx] port 22. debug1: Connection established. debug1: identity file /home/feng/.ssh/identity type -1 debug1: identity file /home/feng/.ssh/id_rsa type 1 debug1: identity file /home/feng/.ssh/id_dsa type -1 debug1: Remote protocol version 2.0, remote software version OpenSSH_5.3 debug1: match: OpenSSH_5.3 pat OpenSSH* debug1: Enabling compatibility mode for protocol 2.0 debug1: Local version string SSH-2.0-OpenSSH_5.3 debug1: SSH2_MSG_KEXINIT sent debug1: SSH2_MSG_KEXINIT received debug1: kex: server->client aes128-ctr hmac-md5 none debug1: kex: client->server aes128-ctr hmac-md5 none debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024 |
今日新闻 |
推荐新闻 |
CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3 |