Solved

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

Posted on 2010-09-15
10
1,589 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 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
Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

 
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
 
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

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.

Question has a verified solution.

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

Users are often faced with high disk consumption without really knowing where the largest amount of data resides. Disk Usage Analyzer (aka Baobab) is is a graphical, menu-driven application to analyse disk usage in any Gnome environment and can e…
The purpose of this article is to demonstrate how we can upgrade Python from version 2.7.6 to Python 2.7.10 on the Linux Mint operating system. I am using an Oracle Virtual Box where I have installed Linux Mint operating system version 17.2. Once yo…
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

730 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