Set up remote password-free login server

1. Generate your own public key

ssh-keygen -t rsa 


Generate the public key of the machine The generated address can be seen during the generation process
Insert picture description here

Find the location of the generated public key, where id_rsa.pub is the public key, copy
Insert picture description here

2. Deploy the public key to the server

Enter own server
enter directory

cd ~/.ssh/
vi authorized_keys

Copy the copied public key to authorized_keys to completeInsert picture description here

Guess you like

Origin blog.csdn.net/qq_41800366/article/details/109237331