cmann123
Posts: 7
Joined: Wed Nov 15, 2017 3:35 pm

SSH into pi trouble shooting

Sat Dec 30, 2017 10:00 pm

Trying to SSH (for headless setup) into my pi for the first time, its been set up, enabled SSH on the setting and also the username and password has been changed.

using the command
ssh "username@xxx.xxx.x.x"

obviously replacing the username with mine and the ip address of the device in the provided command.

all went expected, was asked yes/no to accept the key, was then prompted to provide the password for the pi. when i entered the password i was provided with "permission denied, please try again". I have entered the password numerous times incase of human errors but still nothing, i even tried raspberry and that shows the same. i am 99% certain i did not enter the password incorrectly when i changed it as i was extra careful and was requested to enter twice for compatibility.

using raspian lite. Hope any of this helps!

User avatar
topguy
Posts: 6527
Joined: Tue Oct 09, 2012 11:46 am
Location: Trondheim, Norway

Re: SSH into pi trouble shooting

Mon Jan 01, 2018 4:23 am

And the user you are trying to log in as is NOT root ? Did you create a new user ? Maybe verify that you can log in as "pi" and standard password before messing with it.

What kind of machine are you logging in from ? I guess you can add "-v" to the ssh command to see more information.

cmann123
Posts: 7
Joined: Wed Nov 15, 2017 3:35 pm

Re: SSH into pi trouble shooting

Fri Feb 23, 2018 1:47 pm

thanks for you reply, i cant remember how i done it but it worked out in the end, thanks for your help anyway

jahboater
Posts: 5825
Joined: Wed Feb 04, 2015 6:38 pm
Location: West Dorset

Re: SSH into pi trouble shooting

Fri Feb 23, 2018 2:37 pm

You can avoid using passwords at all (and improve security) by using public key authentication.
On your PC type:

ssh-keygen -t rsa
ssh-copy-id user@host

Return to “Troubleshooting”