jueves, 5 de agosto de 2021

Enabling SSH

sudo systemctl enable ssh

sudo systemctl start ssh

ssh pi@[<em>raspberrypi_ip_address</em>]

###

Secure Shell (SSH) is a feature of Linux that allows you to effectively open a terminal session on your Raspberry Pi from the command line of your host computer.

Recent versions of Rasbpian do not enable SSH access by default.  You can use an empty boot file or raspi-config.

Using a blank boot file

For truly headless setups, if you can't ssh into your Pi you can't turn on ssh!

It's a bit of conundrum! But you can easily get around it by using a trick in Raspbian. To do so, we simply create a file called sshThis file does not exist by default and needs to be created. It can be empty. The system looks for it at boot time and will enable ssh if it is there. It is then deleted. So just create a new file and save it as ssh to the boot folder. If you plug the SD card into your computer, just put that ssh file directly in the SD card director's root directory

learn_raspberry_pi_sshfile.png

Using Raspi-Config

In order to do this, open LX Terminal on your Pi and enter the following command to start Raspi Config:

sudo raspi-config
learn_raspberry_pi_starting_raspi-config.png

Scroll down to the “ssh” option, it might be under Interfaces or Advanced (they move it around)

learn_raspberry_pi_raspi_config_ssh1.png

Hit the Enter key and then select “Enable”

learn_raspberry_pi_raspi_config_ssh2.png

A script will run and then you will see the following as confirmation:

learn_raspberry_pi_raspi_config_ssh3.png

You will need to reboot your Pi to make the change permanent


https://learn.adafruit.com/adafruits-raspberry-pi-lesson-6-using-ssh/enabling-ssh

No hay comentarios:

Publicar un comentario