Solved

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

Posted on 2010-09-15
10
1,569 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
Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

 
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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

This document is written for Red Hat Enterprise Linux AS release 4 and ORACLE 10g.  Earlier releases can be installed using this document as well however there are some additional steps for packages to be installed see Metalink. Disclaimer: I hav…
You ever wonder how to backup Linux system files just like Windows System Restore?  Well you can use Timeshift in Linux to perform those similar action.  This tutorial will show you how to backup your system files and keep regular intervals. Note…
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…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

757 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

19 Experts available now in Live!

Get 1:1 Help Now