?
Solved

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

Posted on 2010-09-15
10
Medium Priority
?
1,608 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
10 Comments
 
LVL 2

Assisted Solution

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

Assisted Solution

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

Author Comment

by:1030071002
ID: 33684381
ubuntu yes it is running locally
0
Why Off-Site Backups Are The Only Way To Go

You are probably backing up your data—but how and where? Ransomware is on the rise and there are variants that specifically target backups. Read on to discover why off-site is the way to go.

 
LVL 2

Assisted Solution

by:joseleonardo
joseleonardo earned 1332 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
 
LVL 18

Assisted Solution

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

Try:

ssh -l {loginname} localhost

Regards, Tobias
0
 
LVL 2

Assisted Solution

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

Assisted Solution

by:joseleonardo
joseleonardo earned 1332 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

NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

Question has a verified solution.

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

1. Introduction As many people are interested in Linux but not as many are interested or knowledgeable (enough) to install Linux on their system, here is a safe way to try out Linux on your existing (Windows) system. The idea is that you insta…
Hello to you all, I hear of many people congratulate AWS (Amazon Web Services) on how easy it is to spin up and create new EC2 (Elastic Compute Cloud) instances, but then fail and struggle to connect to them using simple tools such as SSH (Secure…
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…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Suggested Courses
Course of the Month12 days, 11 hours left to enroll

777 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