'How to enable the Raspberry Pi 4 to work remotely?

Anyone knows how to operate the Raspberry Pi 4 remotely? So that I don't need to always connect it to a monitor when I want to use it.

My Pi is Raspberry Pi 4 with Yocto image built inside. I wonder how to configure the Pi so that it can be used remotely without the need to connect to a monitor. Any helps will be appreciated!



Solution 1:[1]

If you're using the Yocto reference distro 'Poky', then you can enable one of the following IMAGE_FEATUREs:

and that will start a SSH server at boot.

A quick way to do this, is to add the following to your local.conf:

# local.conf
EXTRA_IMAGE_FEATURES += "ssh-server-dropbear"

A more permanent solution is to define a custom image recipe:

# my-custom-image.bb
require core-image-minimal.bb

DESCRIPTION = "A small image with a SSH server for remote access"

IMAGE_FEATURES += "ssh-server-dropbear"

Alternatively, if you already have your own Yocto configurations - just add either the dropbear or openssh package to your image/packagegroups.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 justinsg