Blog
pihole

SSH into pihole

2026-01-29

SSH Command for Pi-hole Server

To connect to your Pi-hole server via SSH, use the following command:

Terminal window
ssh -i ~/.ssh/pihole paavan@pi.hole

This uses your SSH key located at ~/.ssh/pihole to authenticate as user paavan on the pi.hole hostname.

Command Breakdown