I have new RPi3 everything seems to work fine except the fact that I can not connect to it via ssh (from my laptop with Ubuntu 16.04). I have enabled the ssh on raspberry pi and I can establish the connection (see information below) but it gets closed immediately.
I do not know much about SSH so maybe I missed something obvious - but I could not find any solution.
When running ssh -vvv [email protected]
I get:
OpenSSH_7.2p2 Ubuntu-4ubuntu2.1, OpenSSL 1.0.2g 1 Mar 2016
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: Applying options for *
debug2: resolving "192.168.1.103" port 22
debug2: ssh_connect_direct: needpriv 0
debug1: Connecting to 192.168.1.103 [192.168.1.103] port 22.
debug1: Connection established.
debug1: key_load_public: No such file or directory
debug1: identity file /home/mateusz/.ssh/id_rsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/mateusz/.ssh/id_rsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/mateusz/.ssh/id_dsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/mateusz/.ssh/id_dsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/mateusz/.ssh/id_ecdsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/mateusz/.ssh/id_ecdsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/mateusz/.ssh/id_ed25519 type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/mateusz/.ssh/id_ed25519-cert type -1
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_7.2p2 Ubuntu-4ubuntu2.1
debug1: Remote protocol version 2.0, remote software version OpenSSH_6.7p1 Raspbian-5+deb8u3
debug1: match: OpenSSH_6.7p1 Raspbian-5+deb8u3 pat OpenSSH* compat 0x04000000
debug2: fd 3 setting O_NONBLOCK
debug1: Authenticating to 192.168.1.103:22 as 'pi'
debug3: hostkeys_foreach: reading file "/home/mateusz/.ssh/known_hosts"
debug3: send packet: type 20
debug1: SSH2_MSG_KEXINIT sent
Connection closed by 192.168.1.103 port 22
When I try this locally on my Raspberry (connecting to localhost
) I get a similar message.
ssh pi@pi's_ip
eventually `ssh -v -I pi pi's_ip.sshd
logs? Are your permissions on~/.ssh
correct?