LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 12-29-2013, 03:08 AM   #1
BCarey
Senior Member
 
Registered: Oct 2005
Location: New Mexico
Distribution: Slackware
Posts: 1,639

Rep: Reputation: Disabled
ssh_exchange_identification: read: Connection reset by peer


I'm trying to connect to a server (Slack64 13.37) in the US from Italy. The server has been running for a long time, and I was able to connect to it last week from Italy. Now it is giving me this error (full output of ssh -vv pasted below). The http server on the same computer is responding normally. Unfortunately there is no one that can physically access the computer to troubleshoot or restart. I have tried also with a clean .ssh directory.

If I try to access the server with an Android device, it goes so far as to request a password (something it does not do from the Linux client), and then fails with the message java.net.SocketException:recvfrom failed ECONNRESET (Connection reset by peer).

Any idea what could be causing this? Am I screwed until someone can physically access the server?

Thanks for any ideas,
Brian

Code:
OpenSSH_6.4, OpenSSL 1.0.1e 11 Feb 2013
debug1: Reading configuration data /etc/ssh/ssh_config
debug2: ssh_connect: needpriv 0
debug1: Connecting to my.net [xx.xx.xx.xx] port 22.
debug1: Connection established.
debug1: identity file /home/me/.ssh/id_rsa type -1
debug1: identity file /home/me/.ssh/id_rsa-cert type -1
debug1: identity file /home/me/.ssh/id_dsa type -1
debug1: identity file /home/me/.ssh/id_dsa-cert type -1
debug1: identity file /home/me/.ssh/id_ecdsa type -1
debug1: identity file /home/me/.ssh/id_ecdsa-cert type -1
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_6.4
ssh_exchange_identification: read: Connection reset by peer
 
Old 12-29-2013, 09:51 PM   #2
anomie
Senior Member
 
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora
Posts: 3,935
Blog Entries: 5

Rep: Reputation: Disabled
It's hard to know for sure (without viewing the OpenSSH server logs), but it appears to be deliberately sending you an RST packet. You could easily verify that with tcpdump(8).

At this point - who knows? Could be access control (e.g. TCP wrappers, AllowUsers directive), the OpenSSH server having any number of issues (e.g. due to physical disk, filesystem, permissions problems), or even a marginal network device at some point along the way.

Without 1) physical access; or 2) DRAC / ILOM access, this is going to be tricky to troubleshoot and resolve.
 
Old 12-30-2013, 07:55 AM   #3
BCarey
Senior Member
 
Registered: Oct 2005
Location: New Mexico
Distribution: Slackware
Posts: 1,639

Original Poster
Rep: Reputation: Disabled
oh well, guess I'll just have to wait.

Thanks,
Brian
 
Old 12-12-2016, 12:15 PM   #4
Vanyel
Member
 
Registered: Jul 2007
Location: NY, NY
Distribution: RHEL, CentOS, MacOS X
Posts: 158

Rep: Reputation: 29
ssh_exchange_identification: read: Connection reset by peer

I know this thread is old but I was having the same problem and this was one of the first things to come up in a google search.

FWIW, in my case, the problem was the target (setup long prior to my assuming Admin duties) was also using hosts.allow/deny for SSH connections, as well as the firewall. We recently had a change of the IP range for the entire organization and though I modified iptables for the new range, hosts.allow/deny of course still was in the way.

Even more confounding, some machines are in DNS now, but others are not, so only the machines in DNS were blocked. Problems that only occur SOMETIMES are the worst!
 
Old 12-12-2016, 02:27 PM   #5
RandomTroll
Senior Member
 
Registered: Mar 2010
Distribution: Slackware
Posts: 1,973

Rep: Reputation: 271Reputation: 271Reputation: 271
I get this error when I try to connect from an IP address disallowed by SSH in the /etc/ssh* config files.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Connection reset by peer...? QNinja Linux - Networking 3 09-01-2011 06:22 PM
sslReadServer: FD 72: read failure: (104) Connection reset by peer Niceman2005 Linux - Software 2 02-03-2011 08:37 AM
fatal: Read from socket failed: Connection reset by peer prakash.akumalla Linux - Newbie 0 07-18-2008 04:42 AM
Connection reset by peer: why? stupendus Linux - Software 5 08-07-2007 12:50 AM
SSH fatal: Read from socket failed: Connection reset by peer humbletech99 Linux - Networking 3 01-03-2007 06:41 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 06:16 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration