Skip to content

Instantly share code, notes, and snippets.

@M0LTE
Created January 17, 2024 09:36
Show Gist options
  • Save M0LTE/8754fbdbf9fa079ad2603b624332d2d0 to your computer and use it in GitHub Desktop.
Save M0LTE/8754fbdbf9fa079ad2603b624332d2d0 to your computer and use it in GitHub Desktop.
Raspberry Pi userconf
Create a file named user userconf (or userconf.txt) containing the following:
pi:$6$c70VpvPsVNCG0YR5$l5vWWLsLko9Kj65gcQ8qvMkuOoRkEagI90qi3F/Y7rm8eNYZHW8CY6BOIKwMH7a3YYzZYL90zf304cAHLFaZE0
Place userconf (or userconf.txt) plus an empty file named ssh (or ssh.txt) in the BOOT (FAT32) partition of the SD card.
Insert the SD card in the Raspberry Pi and it should boot with access to user 'pi' (password : raspberry) via SSH.
@harphere
Copy link

harphere commented May 5, 2024

This is great, thanks!

@Sprinterfreak
Copy link

In case You wonder how to generate this password hash yourself

openssl passwd -6

Just using the widely known default is not advisable.

@BR0KK
Copy link

BR0KK commented Mar 29, 2025

mac noob incomming:

this command doesn't work on mac osx sequoia:

openssl passwd -6

yields a:

"unkonw command"

@M0LTE
Copy link
Author

M0LTE commented Mar 30, 2025 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment