Ssh_exchange_identification:read:Connection reset by peer Error resolution

Source: Internet
Author: User
Tags connection reset

When you log on to a Linux machine, you can not log in, there is connection reset by peer error, please refer to the following resolution steps:

1, Ssh-vvv-p22 123.10.98.22

Such as:

localhost:~$ Ssh-vvv-p22 123.10.98.22

OPENSSH_6.2P2, Osslshim 0.9.8r 8 DEC 2011

Debug1:reading Configuration Data/etc/ssh_config

DEBUG1:/etc/ssh_config line 20:applying options for *

Debug2:ssh_connect:needpriv 0

Debug1:connecting to 123.10.98.22 [123.10.98.22] Port 22.

Debug1:connection established.

debug1:identity file/.ssh/id_rsa type-1

debug1:identity file/.ssh/id_rsa-cert type-1

debug1:identity file/.ssh/id_dsa type-1

debug1:identity file/.ssh/id_dsa-cert type-1

debug1:enabling compatibility Mode for Protocol 2.0

Debug1:local Version string ssh-2.0-openssh_6.2

Ssh_exchange_identification:read:Connection Reset by peer

2. Check if access control is configured

Cat/etc/hosts.allow


Sshd:192.168.1.*:allow

Sshd:all:deny


Found here is not allowed 123.10.98.22来 login, so you need to add a rule:

Sshd:192.168.1.*:allow

SSHD: The company's Export ip:allow # #这里的IP通过ip138. com can be queried.

Sshd:all:deny

This article comes from "anything you insist on!" "Blog, be sure to keep this provenance http://zhaowenlong51.blog.51cto.com/3231475/1687633

Ssh_exchange_identification:read:Connection reset by peer Error resolution

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.