Quick setup script to enable passwordless pausing of Pi-hole ad blocking from your Mac.
Creates an SSH key, sets up passwordless authentication to your Pi-hole, and adds a pausepi command to your shell that pauses Pi-hole blocking for 60 seconds.
- Edit
setup-pihole-pause.shand set your Pi-hole IP and username:
PIHOLE_IP="X.X.X.X"
PIHOLE_USER="USERNAME"- Run the setup script:
chmod +x setup-pihole-pause.sh
./setup-pihole-pause.sh- Reload your shell or open a new terminal:
source ~/.zshrc # or ~/.bashrcJust type:
pausepiPi-hole will pause blocking for 60 seconds, no password needed.
- Pi-hole installed and accessible via SSH
- Your user must have sudo permissions on the Pi-hole for the
piholecommand