Geekzone: technology news, blogs, forums
Guest
Welcome Guest.
You haven't logged in yet. If you don't have an account you can register now.


MikeAqua

7773 posts

Uber Geek


#320277 25-Jul-2025 14:31
Send private message quote this post

I have a new pihole set up and running as of last week.  When I first wrote the image (Pi Lite 64bit), I cocked up the SSH key side of things.  So I overwrote the image, this time stipulating password validation for SSH connection.

 

The installation and initiation all went well.  Ads are being blocked, but ....

 

If I try and connect by SSH I get the following error message

 

 

 

Permission denied (publickey)

 

 

 

I went into the SSH config file and turned password connection on.   I found and deleted some password keys on the pi.  I deleted password keys on my PC.

 

I'm still getting the error.  Does anyone have any suggestions?

 

Do I need to format the SD card and start again? 

 

Edit: I'm trying to SSH from

C:\Users\[username]>

 

 

 

 





Mike


Create new topic
kyhwana2
2566 posts

Uber Geek


  #3397073 25-Jul-2025 14:43
Send private message quote this post

Did you restart the ssh service on the pi after you changed the sshd_config file?




MikeAqua

7773 posts

Uber Geek


  #3397304 26-Jul-2025 16:05
Send private message quote this post

I did.  But maybe not after I deleted the SSH keys that I found.  I'll try that. 





Mike


marpada
475 posts

Ultimate Geek


  #3397360 26-Jul-2025 22:59
Send private message quote this post

It can be a number of things. I assume you are using the right remote user, like `ssh pi@X.X.X.X`, also on MacOS/Linux the permissions of the private key are important, not sure in Windows.

`ssh -v` might give you a hint of what's is wrong. If not check the logs of the sshd server, if you still have access to the pihole.





timmmay
20575 posts

Uber Geek

Trusted
Lifetime subscriber

  #3397374 27-Jul-2025 08:34
Send private message quote this post

How about starting again, getting Raspian working with password and key login, then installing Pi Hole docker? That way you can easily run other things on the Pi. Right now my Pi Hole is running Home Assistant, AppDaemon (works with HA), influxdb, grafana, uptime kuma, cloudflare daemon, nginx, pi hole, postgresql, restic for backup, syncthing, trilium-next (like Evernote), file browser (like a basic dropbox which works with cloudflare tunnel for private file sharing), and watchtower.

 

I can provide a docker-compose file, Nginx config, and I have snippets of code for things like setting up ssh keys for standard users and root. It'd still take a bit of time to get it all working.


mentalinc
3226 posts

Uber Geek

Trusted

  #3397375 27-Jul-2025 08:45
Send private message quote this post

Also wondering if it's configured for the key, and failing there, instead of moving on to prompt for a password.





CPU: AMD 5900x | RAM: GSKILL Trident Z Neo RGB F4-3600C16D-32GTZNC-32-GB | MB:  Asus X570-E | GFX: EVGA FTW3 Ultra RTX 3080Ti| Monitor: LG 27GL850-B 2560x1440

 

Quic: https://account.quic.nz/refer/473833 R473833EQKIBX 


Create new topic





News and reviews »

Air New Zealand Starts AI adoption with OpenAI
Posted 24-Jul-2025 16:00


eero Pro 7 Review
Posted 23-Jul-2025 12:07


BeeStation Plus Review
Posted 21-Jul-2025 14:21


eero Unveils New Wi-Fi 7 Products in New Zealand
Posted 21-Jul-2025 00:01


WiZ Introduces HDMI Sync Box and other Light Devices
Posted 20-Jul-2025 17:32


RedShield Enhances DDoS and Bot Attack Protection
Posted 20-Jul-2025 17:26


Seagate Ships 30TB Drives
Posted 17-Jul-2025 11:24


Oclean AirPump A10 Water Flosser Review
Posted 13-Jul-2025 11:05


Samsung Galaxy Z Fold7: Raising the Bar for Smartphones
Posted 10-Jul-2025 02:01


Samsung Galaxy Z Flip7 Brings New Edge-To-Edge FlexWindow
Posted 10-Jul-2025 02:01


Epson Launches New AM-C550Z WorkForce Enterprise printer
Posted 9-Jul-2025 18:22


Samsung Releases Smart Monitor M9
Posted 9-Jul-2025 17:46


Nearly Half of Older Kiwis Still Write their Passwords on Paper
Posted 9-Jul-2025 08:42


D-Link 4G+ Cat6 Wi-Fi 6 DWR-933M Mobile Hotspot Review
Posted 1-Jul-2025 11:34


Oppo A5 Series Launches With New Levels of Durability
Posted 30-Jun-2025 10:15









Geekzone Live »

Try automatic live updates from Geekzone directly in your browser, without refreshing the page, with Geekzone Live now.



Are you subscribed to our RSS feed? You can download the latest headlines and summaries from our stories directly to your computer or smartphone by using a feed reader.