Raspberry Pi - Find IP Address and Connect with SSH from Ubuntu Linux
We are going to show you how to find the IP address of a Raspberry Pi and conect to it using SSH from an Ubuntu Linux desktop. We are not going to be covering VNC, just SSH.
- Make sure you are on the same network as the Raspberry Pi.
Find IP Option 1 - Check what is connected to the network using the arp command if you have it installed:
arp -a
Find IP Option 2 - Install nmap if you don’t have it already:
Find the network that you are on with either of these tools ( both might not be installed ):
ip a
ifconfig -a
Install Nmap:
sudo apt update
sudo apt install nmap
Scan for the Raspberry Pi using nmap. Substitute in your network range.
nmap -sP 192.168.0.1-255
Connect using ssh. Make sure you swap in the IP that you found and specify the user that you want ( default of “pi” ):
ssh pi@192.168.0.234
Video Instructions
More Tools
So as you can see, finding and connecting to a Raspberry Pi with SSH is really easy on Linux. We used Ubuntu in this example but the steps to use are pretty similar on other distros. All of the standard tools are available from the repo.
One thing to note is that Zenmap ( GUI for nmap ) is no longer available from the repo because it relies on Python 2. It can be installed manually if desired.
I would also recommend installing net tools in case you want extra network CLI tools. This should include the ifconfig command.
sudo apt update
sudo apt install net-tools