- Enable SSH on your Raspberry Pi: To enable SSH from the terminal, type
sudo raspi-configand select “Interfacing Options” > “P2 SSH” > “Yes” when asked if you want to enable the SSH server . - Discover the IP address or hostname of your Raspberry Pi: You’ll need to know the IP address or hostname of your Raspberry Pi. From the terminal, type
hostname -ito get a list of IP addresses for your Raspberry Pi. Make note of the address or hostname for later . - Connect to your Raspberry Pi via SSH: Open a command prompt on your computer and enter
ssh <username>@<IP or Host Name>where<username>is your username and<IP or Host Name>is the IP address or hostname of your Raspberry Pi. Enter your password when prompted and you will be connected .
raspberry-pi
Connect to Raspberry Pi via SSH