Several ways to open ssh on Raspbian

Preface

After installing the Raspbian system on the Raspberry Pi, the ssh service is turned off by default after startup. If you need to connect via ssh, you must first enable the ssh service

1. Create ssh file in SD card

  • The raspbian system defaults to ssh being turned off. The simplest way to turn it on is to create a sshfile named in the root directory of the memory card and put it into the Raspberry Pi to restart the ssh service.

  • Create a txt file that is named ssh directory in the boot ssh.txtand then the suffix .txtdeleted
    [External link image transfer failed. The source site may have an anti-leech link mechanism. It is recommended to save the image and upload it directly (img-FMes7pYH-1598414192951)(https://www.linuxitellu.com/wp-content/uploads/2020/08 /wp_editor_md_72811231e0404c39f8bfce2cc4960a36.jpg)]

  • Insert the SD card back into the Raspberry Pi, wait a while after booting, and start the ssh service.

2. Open in raspbian-config

  • Open the terminal and enter the command
    sudo raspi-config

  • Choose 5.Interfacing Options

  • Choose P2 SSH

  • Select Yes to enable SSH service

3. Command open

sudo systemctl enable ssh
sudo systemctl start ssh

Linuxitellu synchronous update

Guess you like

Origin blog.csdn.net/no1xium/article/details/108236342