In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-12 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)05/31 Report--
This article mainly introduces how to solve the Connection closed by remote host problem in hbase, has a certain reference value, interested friends can refer to, I hope you can learn a lot after reading this article, the following let the editor take you to understand it.
When the hbase service is started, suddenly a node appears:
Ssh_exchange_identification:Connection closed by remote host .
Change the configuration file, change the settings, do whatever it takes, but it hasn't been done for a long time.
The situation of the above problems is different according to different reasons, which is listed as follows:
Solution:
1. Comment out all the information in / etc/hosts.allow and / etc/hosts.deny. Just restart the SSH service and execute the command:
Systemctl restart sshd.service
However, sometimes after modification, the / etc/hosts.deny is still automatically modified, and the ssh still cannot log in, so you need to check the denyhosts service.
Since I am using fedora20, there is a denyhosts service in the redhat series that automatically overwrites the / etc/hosts.deny file. When you confirm that there is no problem with the machine you want to log in to, you can simply do the following:
/ etc/init.d/denyhosts stop
two。 If the first step cannot be solved, don't worry about modifying the configuration file.
The server checks the two files / etc/hosts.deny and / etc/hosts.allow
Sudo vi / etc/hosts.allow
Add to the hosts.allow file:
Sshd: ALL
Then restart the ssh service and connect.
3. It may also be due to carelessness in ssh installation, the lack of reliance on glibc or openssl packages
You can see the following through the command rpm-qa | grep openssh*:
Openssh-clients-5.3p1-70.el6.i686
Openssl-1.0.0-20.el6.i686
Openssh-5.3p1-70.el6.i686
Openssh-askpass-5.3p1-70.el6.i686
Openssh-server-5.3p1-70.el6.i686
Openssl-devel-1.0.0-20.el6.i686
In general, there will be no problems after installing these packages. Execute the following command:
Sudo yum install openssh-server
4.key damage
Delete the records on the server side by deleting the ~ / .ssh/authorized_keys file on the remote side that needs to be connected, and of course, you can also rebuild the ~ / .server on the server side.
4. Too many remote server connections
When server is attacked or a large number of connections may also cause this error, you can increase the number of connections to sshd. Please visit http://www.92wiki.com.
By default, the maximum number of SSH terminal connections is 10. In this case, you need to change the configuration file of SSH.
Modify # MaxStartups 10 in / etc/ssh/sshd_config to MaxStartups 1000
Restart the ssh service, systemctl restart sshd.service
The number here does not need to be too large, as long as you are suitable.
Thank you for reading this article carefully. I hope the article "how to solve the Connection closed by remote host problem in hbase" shared by the editor will be helpful to everyone. At the same time, I also hope you will support us and pay attention to the industry information channel. More related knowledge is waiting for you to learn!
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: 267
*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.