Bug 754779 - no connect, Read from socket failed: Connection reset by peer.
Summary: no connect, Read from socket failed: Connection reset by peer.
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: openssh
Version: 16
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Jan F. Chadima
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-11-17 17:32 UTC by Daniel
Modified: 2011-11-21 07:27 UTC (History)
5 users (show)

Fixed In Version: openssh-5.8p2-21.fc16
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-11-20 23:57:16 UTC
Type: ---


Attachments (Terms of Use)

Description Daniel 2011-11-17 17:32:26 UTC
Description of problem: I have 2 F16 boxes, one notebook (i386) and one server (x86_64). After a fresh install on both machines I could't connect from the notebook yo the server anymore. I had an error message like "Read from socket failed: Connection reset by peer.". I tried to shorten the keys, dumped the connection data to analyze it.


Version-Release number of selected component (if applicable):
openssh-5.8p2-16.fc16.1.x86_64


Additional info: In the end the solution was very simple. Taking a look into /var/log/messages on the server there was written:

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: UNPROTECTED PRIVATE KEY FILE!          @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Permissions 0640 for '/etc/ssh/ssh_host_rsa_key' are too open.
It is recommended that your private key files are NOT accessible by others.
This private key will be ignored.
bad permissions: ignore key: /etc/ssh/ssh_host_rsa_key
error: Could not load host key: /etc/ssh/ssh_host_rsa_key
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@         WARNING: UNPROTECTED PRIVATE KEY FILE!          @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Permissions 0640 for '/etc/ssh/ssh_host_dsa_key' are too open.
It is recommended that your private key files are NOT accessible by others.
This private key will be ignored.
bad permissions: ignore key: /etc/ssh/ssh_host_dsa_key
Could not load host key: /etc/ssh/ssh_host_dsa_key

After changing the permissions to 0400 the problem disappeared and after a restart of shd on the server I could connect from the notebook again.

Maybe these permissions should set by default in that package.

Comment 1 Fedora Update System 2011-11-18 09:40:32 UTC
openssh-5.8p2-21.fc16 has been submitted as an update for Fedora 16.
https://admin.fedoraproject.org/updates/openssh-5.8p2-21.fc16

Comment 2 Fedora Update System 2011-11-19 06:07:11 UTC
Package openssh-5.8p2-21.fc16:
* should fix your issue,
* was pushed to the Fedora 16 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing openssh-5.8p2-21.fc16'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2011-16144/openssh-5.8p2-21.fc16
then log in and leave karma (feedback).

Comment 3 Fedora Update System 2011-11-20 23:57:16 UTC
openssh-5.8p2-21.fc16 has been pushed to the Fedora 16 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 4 Daniel 2011-11-21 07:27:06 UTC
Thank you, everything is okay now!


Note You need to log in before you can comment on or make changes to this bug.