Question SSH Password

rowanbradley

Distinguished
Mar 31, 2014
5
0
18,510
I'm trying to set up a R-Pi 4B headless. I have followed the instructions on the page https://www.tomshardware.com/reviews/raspberry-pi-headless-setup-how-to,6028.html. But when I try to connect to the Pi using SSH, it doesn't accept my password. Which password am I supposed to be using? I am trying the password that I specified in the OS Customisation General page. Is this correct? Or is there some other password to be used?

Thank you - Rowan
 
Can you ping the RPi? ping 192.168.1.8 (assuming the IP address of the RPi)

If that's good, did you ssh cake@192.168.1.8? The cake@ is crucial. cake is the username in as in step 10 of the referenced setup procedure (I usually forget to do this) The password must be the same as the one entered on that step

-OSD
Yes, I can ping it.
I have tried multiple times to log in with the username and password set in step 10, but it tells me "Permission denied, please try again.".
What do I do next?

Thank you - Rowan
 
If you are like me, you mistyped the password when setting up the OS image. This means you'll have to run the imager again.

I usually first put the password in a text editor, then copy and paste into form (taking care not to copy spaces at the end or beginning). Then, when it is requested, I copy and paste again.

You could make your password easy, then change it after the OS is up and running.

I often use Windows and use PuTTY to ssh. I set up a shortcut and set Target of the properties of the shortcut:
"C:\Program Files\PuTTY\putty.exe" -ssh cake@192.168.1.8 -pw MYPASSWORD
MYPASSWORD is plain text, so a bit of a security issue.

Good luck

OSD
 
Are there any special characters in the password? I'm thinking particularly of characters like #, whose position varies with keyboard layout setting (usually swapped with " in the case of #).

Sometimes the issue is that an incorrect keyboard setting (either when setting the password or supplying it) results in the wrong password, but isn't seen due to the password being hidden. If you're using the same computer to SSH as you used to configure the Pi microSD card it's unlikely, but still worth checking.
 
I tried again as recommended with a much simpler password, and it worked. So I guess the problem was something to do with the special characters in the original password. Anyway, for now that problem is resolved, thanks to all who helped.

Rowan