Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

A ssh service connection error occurred in scp transport

2025-04-06 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

The error is as follows:

Ssh_exchange_identification: read: Connection reset by peer

Lost connection

Cause of the problem

This problem is usually caused by enabling TCP Wrapper access control on the Linux system through / etc/hosts.allow or / etc/hosts.deny.

Treatment method

To resolve this issue, make the following configuration checks and modifications:

Enter the system through the management terminal.

Use instructions such as cat to see if / etc/hosts.allow or / etc/hosts.deny contains configurations similar to the following:

All:all:deny

If you need to modify the relevant policy configuration, it is recommended that you back up the files before continuing.

Using editors such as vi, modify the relevant configuration in / etc/hosts.allow and / etc/hosts.deny as needed, or delete or comment the entire line configuration (with a # sign at the beginning). For example:

All:all:deny

Vi / etc/hosts.allow

For all other comments, add:

Sshd: ALL

Restart ssh and you will ok.

Service sshd restart (centos6)

Systemctl restart sshd (centos7)

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.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report