I have just installed raspbian on a Raspberry Pi 1 Model B, and I am trying to connect it via ssh.
I enabled 'ssh' via 'raspi-config', changed the password of 'pi' user from the default to another new one, and I tried from another PC:
# ssh [email protected]
But I get this error message:
[email protected]'s password:
Permission denied, please try again.
What am I doing wrong? Thank you very much.
If I do ssh -vv [email protected], I get this log:
thomas@externalPC:~/.ssh$ ssh -vv [email protected]
OpenSSH_7.2p2 Ubuntu-4ubuntu1, OpenSSL 1.0.2g-fips 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.100" port 22
debug2: ssh_connect_direct: needpriv 0
debug1: Connecting to 192.168.1.100 [192.168.1.100] port 22.
debug1: Connection established.
debug1: key_load_public: No such file or directory
debug1: identity file /home/thomas/.ssh/id_rsa type -1
debug1: Found key in /home/thomas/.ssh/known_hosts:1
debug2: set_newkeys: mode 1
debug1: rekey after 134217728 blocks
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug2: set_newkeys: mode 0
debug1: rekey after 134217728 blocks
debug1: SSH2_MSG_NEWKEYS received
debug2: key: /home/thomas/.ssh/id_rsa ((nil))
debug2: key: /home/thomas/.ssh/id_dsa ((nil))
debug2: key: /home/thomas/.ssh/id_ecdsa ((nil))
debug2: key: /home/thomas/.ssh/id_ed25519 ((nil))
debug1: SSH2_MSG_EXT_INFO received
debug1: kex_input_ext_info: server-sig-algs=<rsa-sha2-256,rsa-sha2-512>
debug2: service_accept: ssh-userauth
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey,password
debug1: Next authentication method: publickey
debug1: Trying private key: /home/thomas/.ssh/id_rsa
debug1: Trying private key: /home/thomas/.ssh/id_dsa
debug1: Trying private key: /home/thomas/.ssh/id_ecdsa
debug1: Trying private key: /home/thomas/.ssh/id_ed25519
debug2: we did not send a packet, disable method
debug1: Next authentication method: password
[email protected]'s password:
debug2: we sent a password packet, wait for reply
debug1: Authentications that can continue: publickey,password
Permission denied, please try again.
raspberry
) to make sure it didn't not get changed? Also, if you usessh -vv [email protected]
you will get a lot more verbose information that might explain explicitly what the issue is, or at least provide a clue you could cut n' paste in above./var/log/auth.log
. This will show a record of successful and unsucessful login attempts by whatever means. If the unsuccessful logins are shown there, this provessshd
is denying you from the pi and therefore most likely: A) You've done something odd withsshd_config
; B) The password is not what you think it is.