Pi-Hole on Raspbian

Recently setup Pi-hole running on a Raspberry Pi with Raspbian as the operating system. Runs very effectively and is an amazing but of software. The Raspberry Pi boots straight into pi-hole and I do not know how to go back to me command line so as to update to the new Version 4 release.

Any assistance appreciated.

Are you running PADD? Or chronometer?

Sorry, I have no idea what either of these phrases mean

Just the standard pihole

Are you running the raspberry in headless mode (no screen) ?

What exactly do you see when you are trying to login or when you are looking at the console ?

Is there a way for you to post a screenshot ?

2 screenshots attached, no screen plugged in. The raspberry pi takes power from my Xbox One S usb port and it is just then ethernet cable in to my router

In order to access your command line, you need to connect via ssh to your raspberry.

Use the same app you used to access it (the Pi-hole) when you installed it (maybe Putty since you are on windows ?).

I did not install it via Putty, but gave it a go anyway and when i type in the ip address and hit connect it just comes back with Network error : Connection refused.

I have another raspberry pi and can access that via putty and just the ip address and then get a login box and then a password screen. I never get that far with the pihole machine.

Sounds like SSH is not enabled on the device with Pi-hole on it.

There is no way to update Pi-hole without SSH or command line access either via a vnc or SSH client or by connecting a monitor and keyboard

There is one workaround.

Shutdown the Pi - I guess unplug in this case, remove the SD card, mount on a PC or Mac, install a blank file named "ssh" in the root directory and then put the SD card back in Pi and reboot. This will enable the ssh function, and the blank file will be removed from the boot directory.

Thanks for all you help guys.
Putty now works, I can enter the username, but it never gives me a cursor so I can enter the password.

It doesn't give you a cursor (at the password prompt).

Just enter the password and press enter. If you didn't mess up the password string, you'll be taken to the console :slight_smile:

Ok, did that but the putty tells me access denied.

The username is pi and password raspberry by default AND also tried it with the password that was created when pihole was set up.

How did you install Pi-hole in the first place?

I used this guide;

Downloaded Raspbian, extracted it to an sd card, powered it up and that loaded Raspbian, then just ran the command;

curl -sSL https://install.pi-hole.net | bash

Might be easier to just set up a new sd card

You were able to run the curl script from the Linux terminal after you logged in via Putty after you installed Raspbian on the Pi? And now you cannot login via Putty?

Try this - from the Web GUI interface, settings > system, select "restart system" to reboot the Pi and see if you can log in after that via Putty.

And, what model Pi are you running this on?

It a Raspberry Pi2, tried restarting, same access denied.

Never used the command line in the normal sense to install Pihole. The Raspbian booted into a desktop, I then opened a command prompt from within the desktop and just entered the curl script.

You could connect the HDMI cable from the Xbox to it, attach a keyboard and use the same method to update as you did to install.

When you get logged in to the Pi terminal on the Pi desktop, run raspi-config to enable both ssh and VNC in the interface options. Then you can install VNC viewer on your PC and use that software to remote into the Pi's desktop. Some people prefer this interface to the command line via ssh.

2 Likes