How to SSH into a Raspberry Pi [Beginner's Tip]

In this Raspberry Pi article series, you’ll learn how to enable SSH in Raspberry Pi and then how to SSH into a Raspberry Pi device.
Warp Terminal

Out of all the things you can do with Raspberry Pi, using it as a server in a home network is very popular. The tiny footprint and low power consumption makes it a perfect device to run light weight servers.

One of the things you should be able to do in such a case is run commands on your Raspberry Pi without needing to plug in a display, keyboard, mouse and having to move yourself to the location of your Raspberry Pi each time.

You achieve this by logging into your Raspberry Pi via SSH (Secure Shell) from any other computer, your laptop, desktop or even your phone. Let me show you how

How to SSH into Raspberry Pi

Ssh Into Raspberry Pi

I assume that you are running Raspbian on your Pi and have successfully connected to a network via Ethernet or WiFi. It’s important that your Raspberry Pi is connected to a network otherwise you won’t be able to connect to it via SSH (sorry for stating the obvious).

Step 1: Enable SSH on Raspberry Pi

SSH is disabled by default in Raspberry Pi, hence you’ll have to enable it when you turn on the Pi after a fresh installation of Raspbian.

First go to the Raspberry Pi configuration window by navigating through the menu.

Raspberry Pi Configuration
Raspberry Pi Menu, Raspberry Pi Configuration

Now, go to the interfaces tab, enable SSH and restart your Pi.

Enable Ssh Raspberry Pi
Enable SSH on Raspberry Pi

You can also enable SSH without via the terminal. Just enter the command sudo raspi-config and then go to Advanced Options to enable SSH.

Step 2. Find the IP Address of Raspberry Pi

In most cases your Raspberry Pi will be assigned a local IP address which looks like 192.168.x.x or 10.x.x.x. You can use various Linux commands to find the IP address.

I am using the good old ifconfig command here but you can also use ip address.

Ifconfig Rapberry Pi
Raspberry Pi Network Configuration

This command shows all the list of active network adapters and their configuration. The first entry(eth0) shows IP address as which is valid.I have used Ethernet to connect my Raspberry Pi to the network, hence it is under eth0. If you use WiFi check under the entry named ‘wlan0‘ .

You can also find out the IP address by other means like checking the network devices list on your router/modem.

Step 3. SSH into your Raspberry Pi

Now that you have enabled SSH and found out your IP address you can go ahead and SSH into your Raspberry Pi from any other computer. You’ll also need the username and the password for the Raspberry Pi.

The default username and password is:

  • username: pi
  • password: raspberry

If you have changed the default password then use the new password instead of the above. Ideally you must change the default password. In the past, a malware infected thousands of Raspberry Pi devices that were using the default username and password.

Open a terminal (on Mac and Linux) on the computer from which you want to SSH into your Pi and type the command below. On Windows, you can use a SSH client like Putty.

Here, use the IP address you found out in the previous step.

ssh [email protected]
Make sure your Raspberry Pi and the computer you are using to SSH into your Raspberry Pi are connected to the same network.
Ssh Into Pi Warning
SSH through terminal

You’ll see a warning the first time, type yes and press enter.

Ssh Into Pi Password
Type the password (default is ‘raspberry‘)

Now, type in the password and press enter.

Ssh Into Pi Successful Login
Successful Login via SSH

On a successful login you’ll be presented with the terminal of your Raspberry Pi. Now you can any commands on your Raspberry Pi through this terminal remotely(within the current network) without having to access your Raspberry Pi physically.

Furthermore, you can also set up SSH-Keys so that you don’t have to type in the password every time you log in via SSH, but that’s a different topic altogether.

I hope you were able to SSH into your Raspberry Pi after following this tutorial. Let me know how you plan to use your Raspberry Pi in the comments below!

About the author


I'm a Maker, love to tinker with electronics. PCMR fanatic and I occasionally make YouTube videos about tech. Philosophy and Psychology are my interests on the other side of the isle.


Making You a Better Linux User


Great! You’ve successfully signed up.

Welcome back! You've successfully signed in.

You've successfully subscribed to It's FOSS.

Success! Check your email for magic link to sign-in.

Success! Your billing info has been updated.

Your billing was not updated.