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.