Do you want to learn how to connect to your Raspberry Pi remotely through SSH from your laptop or desktop computer? If yes, this article is for you. Note that we are only teaching how to connect to a Raspberry Pi Remotely through SSH with a laptop or desktop computer. You cannot perform this function with the phone. Please, follow through to learn.
How to SSH into Raspberry Pi
SSH (Secure Shell) is the most reliable method of connecting to your Raspberry Pi. So, follow the steps below to login:
- Firstly, start by opening a command line
- Secondly, proceed to connect your Pi to your WiFi (or wired) network. Then, open a new command line:
How to Set up WiFi on Your Raspberry Pi Without a Monitor (Headless)
You can achieve this without a monitor, keyboard, or mouse.
- Start by opening Terminal: go to Applications > Utilities > Terminal.
For Windows 10+:
- Right-click the Start button and select Command Prompt.
Normally, Raspbian Jessie, Raspbian Stretch, and Raspbian Buster have SSH disabled by default for security reasons. Please, make sure that you are using an up-to-date version of Raspbian and enable SSH on your Raspberry Pi before proceeding. This is for security reasons. Make sure your computer is on the same network as your Pi all the time.
How to Enable SSH on Raspberry Pi without a Screen
- Disable the SSH protocol by default.
- Get the username and password
- The default username and password for the Raspberry Pi is: username is pi and password is raspberry. On the other hand, if you’ve changed the password, use the updated password.
- Use the SSH command. The default hostname for the Pi is raspberry pi, in your command line app, supply ssh [email protected] and click enter:
Also, it is important to know that some distributions change the hostname by default — for example, the default hostname for RetroPie is retro pie, so you’d connect using that in place of raspberrypi. You can quickly check whether your Pi uses a certain hostname by pinging it and trying each hostname:
Further, you can connect with your Raspberry Pi’s IP address:
How to Find Your Raspberry Pi’s IP Address
192.168.X.X is your Pi’s IP address. You can get your Pi’s IP address with the ping command above.
Enter the password when you see the password prompt. For security reasons, you won’t see the password as you type. It is normal to face host verification warning like these:
‘’The authenticity of host ‘abc (abc)’ can’t be established’’.
‘’RSA key fingerprint is 3f:1b:f4:bd:c5:aa:c1:1f:bf:4e:2e:cf:53:fa:d8:59’’.
Are you sure you want to continue connecting (yes/no)?
Click “yes” and press enter. It is just a security alert to inform you that you’re trying to connect to a host for the first time. After connecting, the host will be added to the known host’s file. From now on, you will not be seeing the warning.
I hope you found this article very resourceful. Keep your questions in the comment section.