Accessing your Raspberry Pi without a Monitor or Keyboard

Learn how to access and control your Raspberry Pi from anywhere in the world using SSH, enabling you to work on your projects remotely. …


Updated September 28, 2023

Need help with your Raspberry Pi?
Contact Me!

Do you love silly Raspberry Pi Projects?
Check out my this YouTube Channel!


Learn how to access and control your Raspberry Pi from anywhere in the world using SSH, enabling you to work on your projects remotely.

Are you tired of being tethered to your Raspberry Pi monitor and keyboard? Want to access your Pi from the comfort of your couch or while on the go? Well, now you can! With a few simple steps, you can log into your Raspberry Pi remotely using SSH (Secure Shell) protocol. This article will guide you through setting up remote access and connecting to your Pi from any device with an internet connection.

Step 1: Enable SSH on Your Raspberry Pi

SSH is disabled by default on a fresh install of Raspbian, the operating system used for most Raspberry Pi devices. To enable it, follow these steps:

  1. Open the terminal on your Raspberry Pi (or connect to it via SSH if you’re already set up).
  2. Type sudo raspi-config and press Enter. This will open the Raspberry Pi configuration tool.
  3. Navigate to Interfacing Options > SSH and select “Enable”.
  4. Press Enter to save your changes and exit the configuration tool.
  5. Reboot your Pi by typing sudo reboot.

Step 2: Find Your Raspberry Pi’s IP Address

Before you can connect remotely, you need to know your Raspberry Pi’s IP address on your local network. You can find this by running the following command in the terminal:

hostname -I

This will output something like 192.168.1.100. Write down this IP address, as you will need it later to connect from another device.

Step 3: Set Up a Static IP Address (Optional)

If your Raspberry Pi loses its connection to the internet or restarts, it may receive a new IP address on your local network. To prevent this from happening and make connecting easier, you can set up a static IP address. This involves editing your dhcpcd.conf file:

  1. Open the terminal and type sudo nano /etc/dhcpcd.conf.
  2. Add the following lines at the bottom of the file:
interface eth0
static ip_address=<your_desired_ip>/24
static routers=<your_router_ip>
static domain_name_servers=<your_dns_server_ip>

Replace <your_desired_ip> with the IP address you want to assign (e.g., 192.168.1.50), <your_router_ip> with your router’s IP address (found in your router settings or by typing ip route show), and <your_dns_server_ip> with a DNS server IP address (e.g., 8.8.8.8.8 for Google Public DNS). 3. Press Ctrl + X, then Y, and Enter to save and exit the file. 4. Reboot your Pi by typing sudo reboot.

Step 4: Connecting from Another Device

Now that you have enabled SSH on your Raspberry Pi and know its IP address (or set up a static one), it’s time to connect remotely. You can do this using an SSH client like PuTTY on Windows or the built-in Terminal app on macOS/Linux.

  1. Open your SSH client and enter the following command: ssh pi@<your_raspberry_pi_ip>. Replace <your_raspberry_pi_ip> with the IP address you wrote down earlier.
  2. You will be prompted to enter a password. By default, the username is “pi” and the password is “raspberry”. Enter them when asked.
  3. If this is your first time connecting, you may receive a message about the authenticity of the host. Type “yes” to continue.
  4. You are now connected remotely to your Raspberry Pi! Use it just like you would if you were sitting in front of it.

Remember, you can use this method to control any device running an SSH server, not just a Raspberry Pi. It’s a powerful tool for accessing and managing your devices from anywhere!