Everything seems to be configured correctly, but when trying to connect, using:
ssh -v localhost
I get
Code:
OpenSSH_5.8p1 Debian-7ubuntu1, OpenSSL 1.0.0e 6 Sep 2011
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for *
debug1: Connecting to localhost [127.0.0.1] port 22.
debug1: Connection established.
debug1: identity file /home/janis/.ssh/id_rsa type 1
debug1: Checking blacklist file /usr/share/ssh/blacklist.RSA-4096
debug1: Checking blacklist file /etc/ssh/blacklist.RSA-4096
debug1: identity file /home/janis/.ssh/id_rsa-cert type -1
debug1: identity file /home/janis/.ssh/id_dsa type -1
debug1: identity file /home/janis/.ssh/id_dsa-cert type -1
debug1: identity file /home/janis/.ssh/id_ecdsa type -1
debug1: identity file /home/janis/.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
debug1: SSH2_MSG_KEXINIT sent
Read from socket failed: Connection reset by peer
Key is identified, everything seems to be OK.
Tested if ssh server is working with
ps -A | grep sshd
got
Code:
681 ? 00:00:00 sshd
All is cool.
Tested if sshd is listening on port 22 with
sudo ss -lnp | grep sshd
got
Code:
0 128 :::22 :::* users:(("sshd",681,4))
0 128 *:22 *:* users:(("sshd",681,3))
All is cool.
Tested to connect using actual IP too, the same result!
Why is Peer(Server) resetting the connection?