You can access the command line of a Raspberry Pi remotely from another computer or device on the same network using SSH.
The Raspberry Pi will act as a remote device: you can connect to it using a client on another machine.
SSH is handy if you want to quickly connect to your Raspberry Pi from a terminal on another computer. It’s also ideal for lightweight distro installations that don’t have an interface. It’s especially useful when creating Internet of Things (IoT) projects, as these may be embedded and not require a desktop.
Enable SSH :
1. Launch Raspberry Pi Configuration from the Preferences menu
2. Navigate to the Interfaces tab
3. Select Enabled next to SSH
4. Click OK
Alternatively, use systemctl to start the service:
sudo systemctl enable ssh
sudo systemctl start ssh
For headless setup, SSH can be enabled by placing a file named ssh, without any extension, onto the boot partition of the SD card from another computer. When the Pi boots, it looks for the ssh file. If it is found, SSH is enabled and the file is deleted. The content of the file does not matter; it could contain text, or nothing at all.
If you have loaded Raspbian onto a blank SD card, you will have two partitions. The first one, which is the smaller one, is the boot partition. Place the file into this one.
FOLLOW ME:
Facebook: / karimmufte
Instagram: / karimmufte
LinkIn: / mahamudul-karim-khondaker-8b8586137
Twitter: / karimmufte
Youtube: / mahamudulkarimkhondaker