In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces "how to solve the problem of slow Linux server-side SSH remote connection speed". In daily operation, I believe many people have doubts about how to solve the problem of slow Linux server-side SSH remote connection speed. Xiaobian consulted all kinds of materials and sorted out simple and easy-to-use operation methods. I hope it will be helpful for everyone to answer "how to solve the problem of slow Linux server-side SSH remote connection speed". Next, please follow the editor to study!
Solution:
1. Change the configuration in the / etc/ssh/sshd_config file on the ssh server to the following:
The code is as follows:
UseDNS no
# GSSAPI options
GSSAPIAuthentication no
Then, execute / etc/init.d/sshd restart to restart the sshd process to make the above configuration take effect, and it is generally not slow to connect.
2. If it is still slow, check whether the corresponding hostname of 127.0.0.1 in the / etc/hosts file on the ssh server is the same as the result of uname-n, or add native ip and hostname (uname-n result) to / etc/hosts.
The code is as follows:
[root@C64 ~] # uname-n
C64
[root@C64 ~] # cat / etc/hosts
# modi by oldboy 11:12 2013-9-24
127.0.0.1 C64 localhost localhost.localdomain localhost4 localhost4.localdomain4
:: 1 localhost localhost.localdomain localhost6 localhost6.localdomain6
10.0.0.18 C64
#
Use the debugging function of ssh-v to find the cause of the slow
In fact, you can debug the details of why it is slow with the following command (it is important to learn this idea).
The code is as follows:
[root@C64] # ssh-v root@10.0.0.19
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 10.0.0.19 [10.0.0.19] port 22.
Debug1: Connection established.
Debug1: permanently_set_uid: 0/0
Debug1: identity file / root/.ssh/identity type-1
Debug1: identity file / root/.ssh/id_rsa type-1
Debug1: identity file / root/.ssh/id_dsa 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 Old Boy teacher Review: here is the interactive prompt for password input.
Debug1: Authentication succeeded (password).
Debug1: channel 0: new [client-session]
Debug1: Entering interactive session.
Debug1: Sending environment.
Debug1: Sending env LANG = en_US.UTF-8
Last login: Tue Sep 24 10:30:02 2013 from 10.0.0.18
If you are slow to connect remotely, you can determine where the card is.
The code is as follows:
[root@C64_A] # ssh-v oldboy@10.0.0.17
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 10.0.0.17 [10.0.0.17] port 22.
Debug1: Connection established.
Debug1: permanently_set_uid: 0/0
Debug1: identity file / root/.ssh/identity type-1
Debug1: identity file / root/.ssh/id_rsa type-1
Debug1: identity file / root/.ssh/id_dsa type 2
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
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.