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.
@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.

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