Troubleshooting Linux SSH client SSH connection Linux server very slow problem

Source: Internet
Author: User
Tags hmac

A slow connection occurs when using an SSH client to connect to another Linux server on Linux. But to change a client to even find the speed is normal. Assume that the SSH client appears as a problem.


So using ssh-v IP debugging, sure enough to find the problem. The output is as follows:

[Email protected] ~]# ssh-v 10.60.9.32

OPENSSH_5.3P1, OpenSSL 1.0.1e-fips 2013

Debug1:reading Configuration Data/etc/ssh/ssh_config

Debug1:applying Options for *

Debug1:connecting to 10.60.9.32 [10.60.9.32] Port 22.

Debug1:connection established.

debug1:permanently_set_uid:0/0

Debug1:identity file/root/.ssh/identity type-1

Debug1:identity File/root/.ssh/identity-cert type-1

Debug1:identity File/root/.ssh/id_rsa type-1

Debug1:identity File/root/.ssh/id_rsa-cert type-1

Debug1:identity FILE/ROOT/.SSH/ID_DSA type-1

Debug1:identity File/root/.ssh/id_dsa-cert type-1

Debug1:identity FILE/ROOT/.SSH/ID_ECDSA type-1

Debug1:identity File/root/.ssh/id_ecdsa-cert type-1

Debug1:remote Protocol version 2.0, Remote software version openssh_4.3

debug1:match:openssh_4.3 Pat Openssh_4*

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<1024<8192) sent

Debug1:expecting Ssh2_msg_kex_dh_gex_group

Debug1:ssh2_msg_kex_dh_gex_init sent

Debug1:expecting ssh2_msg_kex_dh_gex_reply

Debug1:host ' 10.60.9.32 ' is known and matches the RSA Host key.

Debug1:found Key In/root/.ssh/known_hosts:9

Debug1:ssh_rsa_verify:signature correct

Debug1:ssh2_msg_newkeys sent

Debug1:expecting Ssh2_msg_newkeys

Debug1:ssh2_msg_newkeys received

Debug1:ssh2_msg_service_request sent

Debug1:ssh2_msg_service_accept received

Debug1:authentications that can Continue:publickey,gssapi-with-mic,password

Debug1:next Authentication Method:gssapi-with-mic



Can be in the last article, should and " gssapi-with-mic" related, after the investigation, finally found the problem, sure enough is the SSH client file has a problem. Is the result of a reverse query when the SSH client connects.


here's how to modify it:

Modify the Native Client Profile Ssh_config, note that it is not ssh_config

Vi/etc/ssh/ssh_config

Found it

Gssapiauthentication Yes

Switch

Gssapiauthentication No


Try it again, the speed is normal.

This article is from the "Mr. Koala" blog, please make sure to keep this source http://koala003.blog.51cto.com/9996246/1689914

Troubleshooting Linux SSH client SSH connection Linux server very slow problem

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.