Comment 4 for bug 874518

Revision history for this message
Clint Byrum (clint-fewbar) wrote : Re: [Bug 874518] Re: ssh fails after upgrade to 11.10

Excerpts from Jason Nett's message of Sat Oct 15 00:54:27 UTC 2011:
> Hi Clint,
>
> Thanks for getting back to me. Using ifconfig, my laptop's "inet addr"
> is "127.0.0.1" and "ssh -vv 127.0.0.1" yields:
>
> jason:~$ ssh -vv 127.0.0.1
> OpenSSH_5.8p1 Debian-1ubuntu3, OpenSSL 0.9.8o 01 Jun 2010
> debug1: Reading configuration data /etc/ssh/ssh_config
> debug1: Applying options for *
> debug2: ssh_connect: needpriv 0
> debug1: Connecting to 127.0.0.1 [127.0.0.1] port 22.
> debug1: connect to address 127.0.0.1 port 22: Connection refused
> ssh: connect to host 127.0.0.1 port 22: Connection refused
>
> Despite the "connection refused" I see here, it does connect to where it
> needs to, as it always has.
>
> Meanwhile, my desktop's "inet addr" is 192.168.1.64 and the output here
> is:
>
> jason:~$ ssh -vv 192.168.1.64
> OpenSSH_5.8p1 Debian-7ubuntu1, OpenSSL 1.0.0e 6 Sep 2011
> debug2: ssh_connect: needpriv 0
> debug1: Connecting to 192.168.1.64 [192.168.1.64] port 22.
> debug1: Connection established.
> debug1: identity file /home/jason/.ssh/id_rsa type -1
> debug1: identity file /home/jason/.ssh/id_rsa-cert type -1
> debug1: identity file /home/jason/.ssh/id_dsa type -1
> debug1: identity file /home/jason/.ssh/id_dsa-cert type -1
> debug1: identity file /home/jason/.ssh/id_ecdsa type -1
> debug1: identity file /home/jason/.ssh/id_ecdsa-cert type -1
> debug1: Remote protocol version 2.0, remote software version
> OpenSSH_5.8p1 Debian-7ubuntu1
> debug1: match: OpenSSH_5.8p1 Debian-7ubuntu1 pat OpenSSH*
> debug1: Enabling compatibility mode for protocol 2.0
> debug1: Local version string SSH-2.0-OpenSSH_5.8p1 Debian-7ubuntu1
> debug2: fd 3 setting O_NONBLOCK
> debug1: SSH2_MSG_KEXINIT sent
> Read from socket failed: Connection reset by peer
>
> Again, when I attempt to ssh here I get:
>
> Permission denied (gssapi-keyex,gssapi-with-mic,keyboard-interactive).
>

Jason, thanks for the quick response.

The last line: Read from socket fialed; Connectino reset by peer

means that sshd on your desktop did something to disconnect rather
unexpectedly. It would help to see the contents of /var/log/auth.log
from your desktop, though please remove any sensitive information from
it before posting.