Question Problem logging on to a Raspberry Pi Server ?

Oct 23, 2024
4
0
10
I am using a Raspberry Pi Zero 2 W and I have been trying to follow this tutorial:

How to Block Ads Network-Wide With Pi-hole on Raspberry Pi​

https://www.tomshardware.com/how-to/set-up-pi-hole-raspberry-pi

I get to the point where you logon to the server with putty, and get stuck. It wants me to logon, but what I try is not working. I did set up a password in the imager, is the username “pi”?
I keep getting a fatal putty error, something about no authentication key and server sent private key.

Also I have read that you need to upload the private key to the server, but not seeing any info on how to accomplish that??

Can someone help me, and yes I am new to the Raspberry Pi.
 
Last edited:

OldSurferDude

Honorable
May 18, 2019
175
31
10,640
I think you've imaged properly, (OS with no desktop environment, set password, etc.). Are you using a command like this when you ssh to the device
ssh pi@192.168.ccc.nnn
{where ccc and nnn are appropriate for the device).? What is the ssh command you use?

As a note, I set up an icon on my (windows) desktop to invoke the PuTTY ssh. In the properties of the icon, int Target dialog box, i put
"C:\Program Files\PuTTY\putty.exe" -ssh user@ipaddress -pw password
where user is the user name (pi), ipaddress is (192.168.ccc.nnn) and password is the password you put in the imager. No entering password and a nice ssh client.
 
Oct 23, 2024
4
0
10
I think you've imaged properly, (OS with no desktop environment, set password, etc.). Are you using a command like this when you ssh to the device
ssh pi@192.168.ccc.nnn
{where ccc and nnn are appropriate for the device).? What is the ssh command you use?

As a note, I set up an icon on my (windows) desktop to invoke the PuTTY ssh. In the properties of the icon, int Target dialog box, i put
"C:\Program Files\PuTTY\putty.exe" -ssh user@ipaddress -pw password
where user is the user name (pi), ipaddress is (192.168.ccc.nnn) and password is the password you put in the imager. No entering password and a nice ssh client.
 
Oct 23, 2024
4
0
10
I am using a PI4, and have tried many putty things, but always get"No supported authentication methods available(server sent public key)"
finally installed the OS with a desktop option, and manually downloaded PI-hole ( I think) from the terminal.
Question 1 Will this even work with Putty? willing to start over with a new micro SD card and go thru the steps in Les Pounder's but I will need help with Putty as I always get the fatal error message above after typing in a username in the terminal window.
 

OldSurferDude

Honorable
May 18, 2019
175
31
10,640
Here's something you might try. It's worked for me in the past in that it fixed my problem which was similar to yours. Somewhere, I don't remember where, you have a file that contains all the authentications for the computers to which you ssh. In that file is an entry associated with the ip address. Now I've just deleteded the file, which means I had to re-authenticate all my other computers. This happened the next time I ssh'd into the other computers.

I'm sure that there is someone out there more clever than I could give you better advice.

-osd