Connect with us

How To

Raspberry Pi SSH – How to SSH into the Raspberry Pi?

Published

on

The SSH, also known as Secure Socket Shell, is the network protocol which provides the administrators with a secure way to access the remote computer. It also refers to the suite of utilities, that implement the protocol. It provides strong authentication and secures encrypted data communications between two computers connecting over the insecure network such as the Internet. Network commands widely use SSH and move files from one computer to another. Raspberry Pi SSH can be easily made by following the given steps.

Raspberry Pi SSH
Raspberry Pi SSH

Related: How to watch Netflix on Raspberry Pi?

How to SSH into the Raspberry Pi | Raspberry Pi SSH

Step 1: The first thing you have to do is enabling the SSH on your Raspberry Pi. This can be done in two ways: using the GUI or using the Terminal. You can choose whichever the method you wish. we have given both methods below.

Now go to preferences> Raspberry Pi Configuration and click on “Interfaces.” While there, select “SSH: Enabled.”

Raspberry Pi SSH
Raspberry Pi SSH

Then open the terminal and enter the following command:

sudo raspi-config

Then go to the Advanced Options and select the SSH. You are asked whether you would like the SSH server to be enabled. Select “Yes.”

Raspberry Pi SSH
Raspberry Pi SSH

Now the SSH server is enabled and you can exit the config.

Step 2: Next you have to determine your IP address. In order to connect to the Raspberry Pi, you have to know that your Raspberry Pi’s IP address. If you are going to connect to your Raspberry Pi from inside your home network, open Terminal and enter this command:

hostname -I

If you want to connect to your Raspberry Pi from outside of your home network, you have to set up the port forwarding and manage your public IP address instead.

Getting your public IP address is very simple. Just go to a search engine – like DuckDuckGo, which is the default search engine on the Raspbian – and type “what is my IP address.” Now hit search and then your search engine will provide your answer. Your IP address will be in this format:  ***.***.***.*** – where each * is a digit.

Whether you wish to connect on your home network (with a private IP address) or even from outside your network with the public IP address, You need to remember the digits, so it’s better to write down your IP address.

Step 3: SSH into the Raspberry Pi, to connect to your Raspberry Pi with SSH, you will need the popular program called PuTTY. In the words of its creator, PuTTY is “a free implementation of SSH and Telnet for Windows and Unix platforms.” You can get PuTTy here. Just choose your version putty.exe’s 32 bit or 64 bit based on the Windows version you are running.

Once you have finished downloading, Just launch the putty.exe you can see the screen like this:

Raspberry Pi SSH
Raspberry Pi SSH

Just see the “Host Name or IP address” field? That is where you need to enter the Raspberry Pi’s IP address as determined in the previous step. Make sure that the “Port” field has the value of “22“.

Then, click “Open.”

You will get the security alert, then hit “Yes” on that.

Finally, log in to your Raspberry Pi. The default username is “pi” and your password will be “raspberry”. If you have changed the defaults, just log in to the Raspberry Pi by that ide and password.

Now you are connected to the Raspberry Pi and you can control the device remotely with the Linux commands.

Related: How to Backup Your Raspberry Pi

Mac OS X

Establishing the SSH connection to the Raspberry Pi on Mac OSX, which is very straightforward, Because the operating system comes with the Terminal installed. You just have to open the Terminal and enter the following  command:

ssh [email protected]***.***.***.*** (*** represents your IP address)

After issuing the command, you will be assisted with the security alert. Type “yes” to continue.

Log in to the Raspberry Pi. If you have left the defaults unchanged,  then the username is “pi” and the password will be “raspberry“.

Now You are connected to the Pi and can control your device remotely with the Linux commands. You can get the comprehensive list of commands online.

Thank you for reading this post.

Facebook

Trending