Solved

sudo ssh localhost Read from socket failed: Connection reset by peer

Posted on 2010-09-15
10
1,575 Views
Last Modified: 2013-11-15
sudo ssh localhost
Read from socket failed: Connection reset by peer

how can I resolve those errors
0
Comment
Question by:1030071002
10 Comments
 
LVL 2

Assisted Solution

by:joseleonardo
joseleonardo earned 333 total points
ID: 33683631
what operating system are you using?
0
 
LVL 68

Assisted Solution

by:woolmilkporc
woolmilkporc earned 84 total points
ID: 33683774
Does sshd run on localhost?
0
 

Author Comment

by:1030071002
ID: 33684381
ubuntu yes it is running locally
0
 
LVL 2

Assisted Solution

by:joseleonardo
joseleonardo earned 333 total points
ID: 33684409
check if the service is running please put the output of this command

#netstat -anp | grep 22

0
 

Author Comment

by:1030071002
ID: 33685738
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      2904/sshd      
tcp6       0      0 :::22                   :::*                    LISTEN      2904/sshd      
unix  2      [ ACC ]     STREAM     LISTENING     9222     1576/nm-applet      /tmp/orbit-sysadmin/linc-628-0-5ccea959659ad
unix  2      [ ACC ]     STREAM     LISTENING     9288     1569/pulseaudio     /home/sysadmin/.pulse/7d422e7f0f446a7a41eef5284c89157c-runtime/native
unix  2      [ ACC ]     STREAM     LISTENING     9682     1620/wnck-applet    /tmp/orbit-sysadmin/linc-654-0-22ae07f358eeb
unix  2      [ ACC ]     STREAM     LISTENING     30221    3048/gvfsd-network  /tmp/orbit-sysadmin/linc-be8-0-4a8a4f86ba7cd
unix  2      [ ACC ]     STREAM     LISTENING     12715    1786/evolution-exch /tmp/orbit-sysadmin/linc-6fa-0-22c2acc394702
unix  2      [ ACC ]     STREAM     LISTENING     55393    4463/gedit          /tmp/gedit.sysadmin.1212251940
unix  2      [ ACC ]     STREAM     LISTENING     6223     1178/hald           @/var/run/hald/dbus-bnGcnWm5W6
unix  3      [ ]         STREAM     CONNECTED     33754    1569/pulseaudio     /home/sysadmin/.pulse/7d422e7f0f446a7a41eef5284c89157c-runtime/native
unix  3      [ ]         STREAM     CONNECTED     30322    3056/gvfsd-dnssd    @/dbus-vfs-daemon/socket-mxi36UWy
unix  3      [ ]         STREAM     CONNECTED     30224    3048/gvfsd-network  /tmp/orbit-sysadmin/linc-be8-0-4a8a4f86ba7cd
unix  3      [ ]         STREAM     CONNECTED     30223    1545/gconfd-2      
unix  3      [ ]         STREAM     CONNECTED     30220    1545/gconfd-2       /tmp/orbit-sysadmin/linc-609-0-1020d8b0b284c
unix  3      [ ]         STREAM     CONNECTED     12724    1786/evolution-exch /tmp/orbit-sysadmin/linc-6fa-0-22c2acc394702
unix  3      [ ]         STREAM     CONNECTED     12722    1603/bonobo-activat /tmp/orbit-sysadmin/linc-643-0-447df80cc4fc
unix  3      [ ]         STREAM     CONNECTED     12718    1786/evolution-exch /tmp/orbit-sysadmin/linc-6fa-0-22c2acc394702
unix  3      [ ]         STREAM     CONNECTED     12522    1545/gconfd-2       /tmp/orbit-sysadmin/linc-609-0-1020d8b0b284c
unix  3      [ ]         STREAM     CONNECTED     10226    732/dbus-daemon     /var/run/dbus/system_bus_socket
unix  3      [ ]         STREAM     CONNECTED     10225    1663/indicator-sess
unix  3      [ ]         STREAM     CONNECTED     10221    1542/dbus-daemon    @/tmp/dbus-TqvezLSQDf
unix  3      [ ]         STREAM     CONNECTED     10220    1663/indicator-sess
unix  3      [ ]         STREAM     CONNECTED     10043    1569/pulseaudio     /home/sysadmin/.pulse/7d422e7f0f446a7a41eef5284c89157c-runtime/native
unix  3      [ ]         STREAM     CONNECTED     9722     1577/vino-server    
unix  3      [ ]         STREAM     CONNECTED     9710     1620/wnck-applet    /tmp/orbit-sysadmin/linc-654-0-22ae07f358eeb
unix  3      [ ]         STREAM     CONNECTED     9694     1620/wnck-applet    /tmp/orbit-sysadmin/linc-654-0-22ae07f358eeb
unix  3      [ ]         STREAM     CONNECTED     9687     1620/wnck-applet    /tmp/orbit-sysadmin/linc-654-0-22ae07f358eeb
unix  3      [ ]         STREAM     CONNECTED     9369     1569/pulseaudio     /home/sysadmin/.pulse/7d422e7f0f446a7a41eef5284c89157c-runtime/native
unix  3      [ ]         STREAM     CONNECTED     9225     1576/nm-applet      /tmp/orbit-sysadmin/linc-628-0-5ccea959659ad
unix  3      [ ]         STREAM     CONNECTED     9224     1545/gconfd-2      
unix  3      [ ]         STREAM     CONNECTED     9221     1545/gconfd-2       /tmp/orbit-sysadmin/linc-609-0-1020d8b0b284c
unix  3      [ ]         STREAM     CONNECTED     9220     1576/nm-applet      
unix  3      [ ]         STREAM     CONNECTED     9122     1545/gconfd-2       /tmp/orbit-sysadmin/linc-609-0-1020d8b0b284c
unix  3      [ ]         STREAM     CONNECTED     7322     1462/gdm-session-wo
unix  3      [ ]         STREAM     CONNECTED     6370     1228/event1        
unix  3      [ ]         STREAM     CONNECTED     6225     732/dbus-daemon     /var/run/dbus/system_bus_socket
unix  3      [ ]         STREAM     CONNECTED     6224     1178/hald          


0
Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

 
LVL 18

Assisted Solution

by:TobiasHolm
TobiasHolm earned 83 total points
ID: 33685877
Hi!

Try:

ssh -l {loginname} localhost

Regards, Tobias
0
 
LVL 2

Assisted Solution

by:joseleonardo
joseleonardo earned 333 total points
ID: 33685985
Ok It seems to be a problem with your Authorized_keys
0
 
LVL 2

Assisted Solution

by:joseleonardo
joseleonardo earned 333 total points
ID: 33685996
or try re-installing openssh with  apt-get...
0
 

Accepted Solution

by:
1030071002 earned 0 total points
ID: 33818883
i did that fix did not work
0
 

Author Closing Comment

by:1030071002
ID: 33999672
re- installing the application work
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

The purpose of this article is to show how we can create Linux Mint virtual machine using Oracle Virtual Box. To install Linux Mint we have to download the ISO file from its website i.e. http://www.linuxmint.com. Once you open the link you will see …
The purpose of this article is to fix the unknown display problem in Linux Mint operating system. After installing the OS if you see Display monitor is not recognized then we can install "MESA" utilities to fix this problem or we can install additio…
Viewers will learn how to properly install and use Secure Shell (SSH) to work on projects or homework remotely. Download Secure Shell: Follow basic installation instructions: Open Secure Shell and use "Quick Connect" to enter credentials includi…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, just open a new email message. In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

25 Experts available now in Live!

Get 1:1 Help Now