Wednesday, June 1, 2022

[SOLVED] Raspberry Pi SSH Access Denied

Issue

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

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



Answered By - arctic_hen7
Answer Checked By - Mildred Charles (WPSolving Admin)