[SSH] How to install the remote protocol of ssh

Before installing SSH, you may need

Install the SSH client first:

sudo apt-get install openssh-client=1 :7.6p1-4(版本号)

Install the server

sudo apt-get install openssh-server

log in to this machine

ssh localhost

Enter YES

Enter computer password

 Set up passwordless login

into the ssh file

cd ~/.ssh

Generally, you ssh localhost will generate this directory, if not, just ssh localhost again

set password

ssh-keygen -t rsa

The password is set here, because we want to set a passwordless login, so just press Enter all the time

join authorization

cat ./id_rsa.pub >> ./authorized keys

Guess you like

Origin blog.csdn.net/qq_42792802/article/details/127619630