Read from socket failed: Connection reset by peer., failedpeer

Source: Internet
Author: User
Tags connection reset

Read from socket failed: Connection reset by peer., failedpeer

An error occurred while copying the key to another host:

Read from socket failed: Connection reset by peer.

View logs in/var/log/auth. log of the logged-on Host:

Mar  7 12:51:59 slave01 sshd[2919]: error: @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@Mar  7 12:51:59 slave01 sshd[2919]: error: @         WARNING: UNPROTECTED PRIVATE KEY FILE!          @Mar  7 12:51:59 slave01 sshd[2919]: error: @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@Mar  7 12:51:59 slave01 sshd[2919]: error: Permissions 0711 for '/etc/ssh/ssh_host_rsa_key' are too open.Mar  7 12:51:59 slave01 sshd[2919]: error: It is required that your private key files are NOT accessible by others.Mar  7 12:51:59 slave01 sshd[2919]: error: This private key will be ignored.Mar  7 12:51:59 slave01 sshd[2919]: error: key_load_private: bad permissionsMar  7 12:51:59 slave01 sshd[2919]: error: Could not load host key: /etc/ssh/ssh_host_rsa_key

It should be the permission of the/etc/ssh folder. perform the following operations to change the permission:

# cd /etc/ssh# chmod 0644 *# chmod 0600 ssh_host_dsa_key ssh_host_rsa_key

Restart the sshd service, copy the service successfully, and log on to the server over ssh.

Related Article

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.