Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 8013

Beginners • Re: Trouble running headless

$
0
0
On the rpi itself, have it connect to itself (aka "ssh <username>@localhost"). If it wants a password (it will), it will not give any feedback (security) while you are typing the password, then hit hit return/enter key. If you mistype it will prompt again (default three times) then bail out with an error. This verifies sshd server is working.

This is me just hitting [enter] each time on a box which wants a password, same as mistyping it..

Code:

guy@std ~ $ ssh foo@sdufoo@sdu's password: Permission denied, please try again.foo@sdu's password: Permission denied, please try again.foo@sdu's password: foo@sdu: Permission denied (publickey,password).
If you're getting that message nothing is wrong. Just type the password and hit [enter]. Success will be when the prompt changes to the rpi login. Type the command 'exit' to quit the session (or hit ctrl-D). If <username> doesn't exist you'll get the same response.

In the event you've wisely chosen a complex password, it's possible to set things up so that no password is required but that's a topic for another time. ;-)

For info, sshd does this as first line of security. It's quite common for some boxes to have 'sshd' (port 22) open to the internet. My firewall gets hundreds, sometimes thousands, of attempts to log in from bots every day. You can get more info by adding verbose flag (-v). It get's even more verbose the more you add. Usually two is enough: "ssh -vv foo@sdu" is more than you'll ever want to know. I mention that in case there's ever a network problem.

Statistics: Posted by swampdog — Sat Aug 23, 2025 6:03 pm



Viewing all articles
Browse latest Browse all 8013

Trending Articles