remote access

We often use SSH and VNC tools to remotely control the Raspberry Pi system.

1. Preliminary preparation

Before performing SSH or VNC remote login, you need to enable SSH and VNC functions in the Raspberry Pi system settings or use the raspi-config tool.

1.1. Enable SSH and VNC

Graphical interface

Enable SSH and VNC: applications menu → Preferences → Raspberry Pi Configuration

image-20231218185025481

image-20231218185047468

Command Line

Use the raspi-config tool to enable SSH and VNC functions: Interface Options → SSH/VNC: enable

image-20231208182713050

image-20231208182719089

image-20231208182723704

image-20231208182928273

1.2. Obtain IP

After enabling SSH and VNC functions, you can remotely control the Raspberry Pi based on its IP!

Graphical interface

After the system is connected to WiFi, hover the mouse on the WiFi icon to see the corresponding IP address.

image-20231218185555997

Use the command to view the IP address: hostname -I or ifconfig

image-20231218185654987

2. SSH remote control

After obtaining the IP address of the Raspberry Pi motherboard, you can perform SSH remote login on the terminal based on the user name and password of the Raspberry Pi system.

SSH remote login command: ssh username@IP address

image-20231218185810052

3. VNC remote login

After obtaining the IP address of the Raspberry Pi motherboard, you can use the RealVNC Viewer software to log in remotely.

image-20231218185931015

image-20231218190010589

After successful remote login, the Raspberry Pi system desktop will be displayed!

image-20231218190031053