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

Troubleshooting • Raspberry Imager and ssh login on headless Raspberry

$
0
0
So, first things first.

Setting up ssh through the Imager does not work. Why the key first step of onboarding doesn't work is beyond me, and I lost a whole afternoon on this. But anyways...

My environment:
- Raspbery Pi 4 64 bit / SDCCard / Wifi Antenna
- Mac OS
- Raspberry Pi imager v1.9.0
- Raspberry Pi OS Lite 64 bit (2024-11-19)

Imager
- Set your Wifi username / password
- Do not check the Enable SSH box in the imager and do not set a root username / password.
- Write your image

Mount your image on your Mac
- Add an empty file named ssh in the mounted root directory on your SDCard

Mac Terminal
- Run

Code:

openssl passwd -6
- Enter your password and confirm it
- Copy the resulting password hash, let's say it's xyz, to an empty text called userconf.txt as follows

Code:

pi:xyz
- Add a carriage/hard return after that line and save the file in the mounted root directory on your SDCard
- So, now pi will be your username. You can use something else if you prefer

Insert the SDCard into your Pi, plug it in and wait a minute or two for it to start up.

- Ensure you're on the same Wifi network as the Pi
- In Terminal type

Code:

ssh pi@raspberrypi.local
- If you get some kind of error message complaining that there is a conflicting ssh identity, open ~\.ssh and delete the line with raspberry.local in it and save.
- Connect again and type yes at the prompt to store in the ssh cache

- You should be prompted for your password now
- Type your password at the prompt and you should be in

Let me know if this works

Cheers,
Marc

Statistics: Posted by mschipperheyn — Sat Dec 28, 2024 9:06 pm



Viewing all articles
Browse latest Browse all 4151

Trending Articles