This tutorial will show you How to set up Raspberry Pi for Remote Access with 2 methods. At the end of this tutorial, you learn how to use SSH and VNC to connect Rasberry pi remote access.
If you complete the How to Setup Raspberry Pi Remote Access with 2 Method, you need flowing equipment.
Method -1 Raspberry Pi Remote Access with SSH
SSH must be enabled before you can connect to your Raspberry Pi via SSH. On more recent versions of Raspbian, you can use the Raspberry Pi Configuration tool (Figure 1), which is located under Preferences in the Main menu.
Simply check the box for SSH and press OK. After that, you’ll be asked to restart.
Use the raspi-config tool if you want to use the command line. This can be started at any time by entering the following Terminal command:
To enable SSH, go to the Interfaces section, scroll down to the SSH option, and click the Enabled button. Follow the finger -2 instruction
If you use macOS or you have Linux installed on the computer you want to connect your Pi, simply open a Terminal window and enter the following command:
The IP address (192.168.1.210) represents your Pi’s IP address (see How to find Raspberry pi IP address ). After that, you’ll be asked for your password and logged into the Raspberry Pi.
To connect from a Windows computer, you’ll need to start an SSH session with Putty.
SSH is a very popular way of connecting to remote computers; you can use SSH for any commands on Pi itself. and It is also safe, as the name implies since all communication is encrypted.
The fact that it is a command-line rather than a graphical environment might be the only disadvantage. VNC is needed if you need remote access to the entire Raspberry Pi desktop environment.
Method-2 Access with VNC
On Raspbian, use the VNC app that comes preinstalled. To do so, however, you must first configure your Raspberry Pi to turn it on.
This can be done with the Raspberry Pi Configuration tool, which can be found in the Preferences section of the Raspberry Pi desktop’s Main menu.
Select the VNC option from the Interfaces tab, select the Enabled button, and then click OK (Figure 4).
You will want to increase the resolution if you don’t care about your virtual screen is very low resolution. To do so, run the following command in the config.txt file:
sudo nano /boot/config.txt
Look for lines that resemble this:
# framebuffer_width=1900 # framebuffer_height=1024
To allow the new screen width and height, remove the # character from the beginning of each line, as shown here:
For the changes to take effect, you must restart your computer.
VNC client software is needed to connect to the Pi from a remote device. A popular choice is the RealVNC or VNC Viewer for Windows, Linux, and macOS.
When you run the client program on macOS or Windows, you’ll be prompted to enter the IP address of the VNC server you want to connect to (the IP address of your Pi).
After that, you’ll be asked for your password (Figure 5).
The Catch and Signature are security devices that will notify you if your Raspberry Pi is being hacked. If one of these variables changes when you authenticate again, your Raspberry Pi may be compromised.
While you can do most stuff with SSH using the command line, having access to your Raspberry Pi’s graphical environment is often useful.
As long as the VNC option is enabled, the Raspberry Pi’s VNC server starts automatically when you reboot.
82 total views, 3 views today