Resolve SSH connection too slow

Source: Internet
Author: User

SSH connection is very slow
Workaround:
Modifying a configuration file
/etc/ssh/sshd_config
Gssapiauthentication Yes--->no 81 rows or so
#UseDNS Yes-->usedns no 122 rows or so
The main thing is to disable the DNS query function, which can speed up the SSH connection.
[[Email protected] ~]# service sshd restart
Stop sshd: [OK]
Starting sshd: [OK]
[Email protected] ~]#
----------------------------
Warning:remote HOST identification has changed workaround
This whole Linux cluster these days, in doing test marking Packets with Iptables encountered a problem, want to log this error in the form of blog specific as follows:
When SSH 10.1.1.61
When a situation arises:
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ warning:remote HOST Identification has changed! @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
IT is POSSIBLE this SOMEONE is DOING SOMETHING nasty!
Someone could is eavesdropping on your right now (Man-in-the-middle attack)!
It is also possible, the RSA host key has just been changed.
The fingerprint for the RSA key sent by the remote host is
D0:00:7c:bc:88:5c:dc:de:89:61:44:30:00:60:f9:b2.
Please contact your system administrator.
Add correct host key in/root/.ssh/known_hosts to get rid of the this message.
Offending key in/root/.ssh/known_hosts:1
RSA host key for 192.168.4.222 had changed and you have requested strict checking.
Host Key verification failed.

Workaround:
Cat's home directory first. ssh/know_hosts
Cat ~/.ssh/known_hosts
10.1.1.66 Ssh-rsa aaaab3nzac1yc2eaaaabiwaaaqeas86youhdfyumhkjumspfejcc0ztfqiwgiklyrnf4kvcz+ece/yy59qxnvg7b0dwa/ wyzlagrdumwfexx4y7ve3wuneexvpmrjf0yzgg5qw6edxnmequzzi5k7jg96vgq+5zzhtsrhuqxh1anrmyydrfmufdxth+ a3jkcoqlx9iiifouuuh5jeelql9w9frgmogoqmm3cvbn33mblyhza0uoa3gdpfgrxfjxypvluod90rjivc126cxik3tmsfs0emo7qxpz4mrng/ 1xpcqgkxnejbkrlutxzlxgbwuod3hpx7ob28uk1rdgsxhcztkspph3a04i7y5c5qz1xdxfzqw==
10.1.1.61 Ssh-rsa aaaab3nzac1yc2eaaaabjuhjuhgusi5flkoqayuhjmlxae69vlxa7en/smxxs+ vdjgxlglltldsoxki1cbdzupm4fefmes4a3x3mfab8l46rfnpje45hca4u6uc/ibjmlo8ghrws+ fpiyvdmmokabbql8li0j0bclmklsrfpnsusft/ hm5nbuulmqcoxzgqvolhrgv7jesdgvmoxlhzcsgrj62abtjxktv5dbh5vcxjeh4jfrn4frno7ikg3fa6nogbqus6tenaclxi8f1b+ 479ywaqqedy233n2gw+l5v6ms1ud+1jxxcihx8oto1/v7/vwlfeqfemu323y4zhu4uxflv9wb1xgnmgqeblelsbknpc4pw==
Enter this file
Vim ~/.ssh/known_hosts
Delete 10.1.1.61 information about RSA to

Resolve SSH connection too slow

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.