Remotely Control your Raspberry Pi via SSH: Beginner's Guide

In this tutorial you will be learning how to SSH into your Raspberry Pi from your local computer. SSH (Secure Shell), is a popular network protocol you can utilize to access a command line interface remotely on another computer via a network, thereby granting you access to control that computer and interact with it without having to plug it into a monitor or a keyboard, which can be incredibly useful for the Raspberry Pi at times where you do not feel like using peripherals. Thankfully it is very easy to setup and we will be doing this setup on a Raspberry Pi and a Mac.

Before reading the remainder, be sure to subscribe and support the channel if you have not!

Subscribe:

Youtube

Support:

https://www.buymeacoffee.com/mmshilleh

Remember you can purchase Raspberry Pi accessories at ShillehTek!

https://shillehtek.com/collections/all

Step 1-) Make sure your Pi and Computer are Connected

Your Raspberry Pi and Computer should be connected to the same local network or connected via ethernet. I am using wireless in this example just because I do not have an ethernet. 

Step 2-) Enable SSH on Pi

Once you are logged in go to your Raspberry Pi Configuration as follows: 

You can enable SSH by selecting the toggle item, and then clicking okay. Ignore the I2C one, you do not need that. Click OK and restart your raspberry pi; you can do this by opening the command line and typing 'sudo reboot'.

Step 3-) Get the SSH information you need.

You will need the IP address, username, and password of your system to SSH from your local computer. 

First to get the IP address we open the command line on our Raspberry Pi and type the command 'ifconfig', which shows us the following.

You want to copy the IP Address by the inet value in the wlan0 section, mine is masked here for security purposes.

Next type the command 'whoami' in the command line as follows:

You will need this username later on. Of course, you will also need the password you use to login to the Pi itself.

Step 4-) Local Computer

On your Mac you can open a Terminal window and now type the following command similar to mine.

ssh followed by your username@IP-Address

Type enter and it will prompt you for your password, and then ask if you want to enable RSA fingerprint, type yes.

Once that is done you should have access to your Raspberry Pi system remotely! It is very quick and secure to set this up and can be incredibly useful. Hope you got it to work.

Conclusion

Do not forget to subscribe and follow our blog on ShillehTek for the latest updates. Hope you enjoyed the tutorial and let me know if you have any questions please! 

Create a free account to access full content.

All access to code and resources on ShillehTek.

Signup Now

Already a member? Sign In

Explore More on Our Blog

Create Tabular Product Descriptions on Your Shopify Store

Create Tabular Product Descriptions on Your Shopify Store

Enhance your Shopify store's product pages with our comprehensive guide on implementing tabular descriptions. Learn how to add a...

SSH Into Raspberry Pi with Tailscale VPN

SSH Into Raspberry Pi with Tailscale VPN

Effortlessly access and manage your Raspberry Pi from anywhere using Tailscale's secure mesh VPN.

Send Email with Lua and the ESP32

Send Email with Lua and the ESP32

In this tutorial, we delve into sending emails with the ESP32-S3 using Lua, focusing on the Xedge IDE's built-in SMTP...

How to Code with Lua on ESP32 with XEdge32

How to Code with Lua on ESP32 with XEdge32

Learn how to set up Xedge32 and start coding on the ESP32-S3 with Lua programming!

Stream Audio From Raspberry Pi to Local Computer

Stream Audio From Raspberry Pi to Local Computer

Discover the simplicity of streaming live audio directly from a USB microphone connected to your Raspberry Pi to...

SSH Raspberry Pi via Cell Phone

SSH Raspberry Pi via Cell Phone

This beginner-friendly guide will walk you through remotely controlling your Raspberry Pi using SSH through your cell phone.

Remotely Control Raspberry Pi via SSH from External Network

Remotely Control Raspberry Pi via SSH from External Network

Learn how to SSH into your Raspberry Pi from any network. This is critical in IoT since you can control...

Stream Video from Raspberry Pi Camera to YouTube Live

Stream Video from Raspberry Pi Camera to YouTube Live

Learn how to stream to YouTube from a Raspberry Pi Camera.

How to Connect BH1750 with Arduino: Measure Ambient Light

How to Connect BH1750 with Arduino: Measure Ambient Light

Learn how to measure ambient light for smart lighting control using Arduino and the BH1750 Light Intensity Module.

How to Connect MPU9250 and Raspberry Pi (Part 2 - Calibration)

How to Connect MPU9250 and Raspberry Pi (Part 2 - Calibration)

Learn how to calibrate the MPU9250 in Python with the Raspberry Pi to get more accurate acceleration and gyroscopic...

Back to blog

Leave a comment

Please note, comments need to be approved before they are published.