Remote Access

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

1. Preliminary preparation

Note: SSH and VNC are already enabled in the car image, so you can skip the preliminary preparation content

Before performing SSH and 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 raspi-config tool to enable SSH and VNC functions: Interface Options → SSH/VNC: enable

image-20231208182713050

image-20231208182719089

image-20231208182723704

image-20231208182928273

1.2. Get IP

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

Graphical interface

After the system is connected to WiFi, hover the mouse over 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 log in remotely through SSH in the terminal according to the username and password of the Raspberry Pi system.

Take the car hotspot as an example, password: 12345678

SSH remote login command: ssh username@IP address

The car's username is pi, the password is yahboom, and the hotspot IP address is 192.168.1.11

image-20231218185810052

3. VNC remote login

After obtaining the Raspberry Pi motherboard IP address, you can use the RealVNC Viewer software for remote login.

Take the example of connecting to the car hotspot, password: 12345678

image-20231218185931015

image-20231218190010589

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

image-20231218190031053