Problem in enabling SSH server

Questions about applications and software
Forum rules
Before you post please read how to get help

Problem in enabling SSH server

Postby hamadazein84 on Sat Mar 09, 2013 1:10 pm

Hi,

I am trying to connect to my Linux Mint machine using SSH but I get this error:
Read from socket failed: Connection reset by peer

this the the debug info when I am trying to run this command: ssh -v localhost

OpenSSH_5.9p1 Debian-5ubuntu1, OpenSSL 1.0.1 14 Mar 2012
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: Applying options for *
debug1: Connecting to localhost [127.0.0.1] port 22.
debug1: Connection established.
debug1: identity file /home/hamada/.ssh/id_rsa type -1
debug1: identity file /home/hamada/.ssh/id_rsa-cert type -1
debug1: identity file /home/hamada/.ssh/id_dsa type -1
debug1: identity file /home/hamada/.ssh/id_dsa-cert type -1
debug1: identity file /home/hamada/.ssh/id_ecdsa type -1
debug1: identity file /home/hamada/.ssh/id_ecdsa-cert type -1
debug1: Remote protocol version 2.0, remote software version OpenSSH_5.9p1 Debian-5ubuntu1
debug1: match: OpenSSH_5.9p1 Debian-5ubuntu1 pat OpenSSH*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_5.9p1 Debian-5ubuntu1
debug1: SSH2_MSG_KEXINIT sent
Read from socket failed: Connection reset by peer


Any help please ? :roll:
hamadazein84
Level 1
Level 1
 
Posts: 1
Joined: Sat Mar 09, 2013 11:29 am

Linux Mint is funded by ads and donations.
 

Re: Problem in enabling SSH server

Postby grimdestripador on Tue Mar 12, 2013 3:26 pm

Trial 1.
It looks like localhost isn't responding. Did you already install
Code: Select all
sudo apt-get install openssh-server


Trial 2.
Perhaps you should try to reference your IPV6 address. Rather than IPV4. I've heard of some random localhost to 127.0.0.1 malfunctioning.

Trial 3.
SSH (server) might be detecting that you have a public key from other other computer (workstation) that is expired. You need to delete the saved keys, most likly on both computers, so that It creats a new one.
User avatar
grimdestripador
Level 6
Level 6
 
Posts: 1069
Joined: Fri Feb 16, 2007 2:26 am

Re: Problem in enabling SSH server

Postby wongda on Mon Sep 23, 2013 4:51 pm

I think there is a bug in the Mint 15 where openssh-server default key setting is not down right:

sshd[2649]: error: Could not load host key: /etc/ssh/ssh_host_ecdsa_key
sshd[2649]: fatal: No supported key exchange algorithms [preauth]
sshd[2661]: error: Could not load host key: /etc/ssh/ssh_host_rsa_key
sshd[2661]: error: Could not load host key: /etc/ssh/ssh_host_dsa_key
sshd[2661]: error: Could not load host key: /etc/ssh/ssh_host_ecdsa_key
sshd[2661]: fatal: No supported key exchange algorithms [preauth]


if you remove the package and reinstall, it works again:

sudo apt-get remove openssh-server
sudo apt-get install openssh-server
wongda
Level 1
Level 1
 
Posts: 1
Joined: Mon Sep 23, 2013 4:45 pm


Return to Software & Applications

Who is online

Users browsing this forum: No registered users and 15 guests