How to enable SSH, VNC, or remote desktop?


To enable SSH, VNC, or remote desktop on a Raspberry Pi, follow these steps depending on the method you want to use:
🔧 First: Open Raspberry Pi Configuration
You can enable all of these from:
GUI:
Go to Menu → Preferences → Raspberry Pi Configuration
Open the "Interfaces" tab
Enable:
SSH for terminal access
VNC for graphical remote access
Remote Desktop (via xrdp, see below)
Click OK, then reboot if prompted
Terminal:
bash
sudo raspi-config
Go to Interface Options
Enable SSH, VNC
Exit and reboot
1. Enable SSH (Secure Shell)
Purpose: Access the Pi via terminal from another computer
- Once enabled, find your Pi's IP:
bash
hostname -I
From another computer:
bash
ssh pi@<raspberry_pi_ip>
Default username: pi
Default password: raspberry
(change it!)
2. Enable VNC (Virtual Network Computing)
Purpose: Graphical desktop access remotely
After enabling VNC, install VNC Viewer on your PC (from RealVNC)
Open VNC Viewer and connect to your Pi’s IP:
e.g., 192.168.1.100
Login with Pi’s username and password.
3. Enable Remote Desktop (via xrdp)
Purpose: Use Windows’ built-in Remote Desktop client
- Install xrdp on your Raspberry Pi:
bash
sudo apt update
sudo apt install xrdp
From Windows PC, open Remote Desktop Connection (
mstsc
), and enter the Pi’s IP.Login with your Raspberry Pi credentials.
Tip: Secure Remote Access
- Change default password:
bash
passwd
Use key-based SSH for more security
Consider setting up a static IP or mDNS (
raspberrypi.local
) for easier connection
Subscribe to my newsletter
Read articles from ampheo directly inside your inbox. Subscribe to the newsletter, and don't miss out.
Written by
