'Raspberry Pi SSH Access Denied
I am trying to log into my raspberry pi using putty from windows. However, whenever I try to log into my raspberry using the default username and password (pi & raspberry) it says Access Denied. I have the wpa_supplicant.conf and ssh file created. This is its first bootup. I am using the latest version of Raspain LITE OS.
Solution 1:[1]
Recently, the default user setup of Raspbian was significantly changed, rendering most existing online tutorials invalid. In essence, the default pi user no longer exists, so you have to create it and set its password using either the official Imager tool or by creating a userconf file in the boot partition of your microSD card, which should contain a single line of text: username:hashed-password, replacing username with the name of the user you want (e.g. pi) and hashed-password with the hash of the password you want. According to the official guide, the easiest way to do this is by running the following in a terminal (Linux/MacOS):
echo 'password' | openssl passwd -6 -stdin
Again, you should replace password with the password you want here.
Further reading: https://www.raspberrypi.com/news/raspberry-pi-bullseye-update-april-2022/.
Solution 2:[2]
Default username and password is not valid any longer for raspberry Pi. If you are trying to login headlessly (without monitor/keyboard) you can do it from Pi Imager itself. On Selecting OS in Pi Imager you get an icon of settings in which you can
- create a user
- setup wifi
- enable ssh
After configuring , you can continue flashing your Memory Card. And on first boot you will be good to go
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | arctic_hen7 |
| Solution 2 | Decoy |
