Permission/Access Demied when Trying to SSH into my Pi

Hello.
I need help to figure out why I'm getting the Permission/Access denied message whenever I enter a password during my attempt to SSH into my pi.

I'm trying to setup pihole for my home network. I don't have networking or coding experience, I'm simply following the Crosstalk Solution's World's Greatest Pi-hole Tutorial - [url]https://www.crosstalksolutions.com/the-worlds-greatest-pi-hole-and-unbound-tutorial-2023/[/url]

I'd really appreciate any support.guidance you can provide because I've been searching for a fix for over a day, can can't find anything that works!

Expected Behaviour:

Password is accepted and I'm aget to get SSH access to allow me to setup Pihole. I tried using the new password I created using the imager and "raspberry", but got the same error using both.

Pi Models:

  • Pi 4 model B
  • Pi 3 model B
    Installer/OS: Raspberry Pi Imager v1.7.3 / Raspberry Pi OS Lite (64-Bit)
    Imager Settings:
  • Enabled hostname: as - pihole
  • Enabled SSH / User password authentication
  • Setup username & pswd thru imager settings as: pihole/ xxxxx (Changed the username from the default pi - as per the April 5th Pi notification)

Actual Behaviour:

I'm getting the error message Permission denied, please try again (CMD) & Access denied (PuTTY) when prompted to enter password when trying to ssh into my pi(s). The issue happens on both raspberry my pi's. I've also tried using two SD cards.
image

Debug Token:

Can't ssh into the Pi

This is not a Pi-hole issue:
Your screenshot simply suggests that you are not supplying the correct credentials to login.

Use the correct credentials as set in Raspberry Pi imager during sd card preparation.

Thanks for you response.

I understand that, however; I've used the password I created via the imager and the default "raspberry" password and they're not working. There must be a workaround to setup a new password or get access in this situations.

  • Am I using the correct raspberry default for pi OS lite?
  • Is there a way to wipe the password & create a new one?

Writing the image afresh would be the easiest approach.

There may be ways to reconfigure ssh, but only if you can access your RPi via other means than ssh, e.g. if you have a keyboard and a screen attached to it.

As this isn't a Pi-hole issue, you also may want to consider consulting other forums specialising in RPis for a solution.

You could try attaching a keyboard and HDMI display (eg TV) and booting it and seeing if it takes you to a logged-in terminal. If so then you can change your password with the passwd command. However if not then yes a reimage is probably easiest. You can set the username as pi and select a password and enable ssh directly in the Pi Imager software when you write the image, by clicking the cogwheel icon in the bottom right after selecting your image.

Note that the ssh password for the OS, and the Pi-hole web admin interface password, are two separate passwords. The first is set when you enable ssh and the user (eg the pi username). The second is created by the Pi-hole installer (and can be changed by you if desired) and used to access the Pi-hole admin screen in a browser.

Do you mean use the imager to rewrite the OS onto the SD card? If yes, I've done that 3 time already on two different SD cards.

Sorry for a unsophisticated question(s). I'm not a tech person, so I want to be clear I understand your comment correctly.

I'll try connection directly and see if that works. Thanks

Yes.

Hmm, I haven't read it, but then could your World’s Greatest Pi-hole (and Unbound) Tutorial be missing a step maybe?
You should probably contact the author of that tutorial for help as well.

Ran into this exact issue myself. Turned out, I didn't change the default user name when I ran the wizard, so I had to ssh like this: ssh pi@pihole

Then enter the password.

1 Like

That would match my initial recommendation:

For Jbop, that would mean that ssh pi@192.168.1.32 may be worth a try. :wink:

1 Like

There you go. Forgot I was on Linux and on the same network.

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.