Ssh establishes a secure channel between two machines to encrypt all data. For example, machine A logs on to machine B through ssh (machine A is an ssh client and machine B is an ssh server ). 1. confirm that there is an account on machine B. 2. Generate A key pair on machine A: Enter the directory where the key pair is stored in the first line of ssh-keygen-trsa, and press enter directly (from
Ssh establishes a secure channel between two machines to encrypt all data.
For example, machine A logs on to machine B through ssh (machine A is an ssh client and machine B is an ssh server ).
1. confirm that there is an account on machine B.
2. Generate A key pair on machine A: ssh-keygen-t rsa
Enter the directory for storing the key pair in the first line, and press enter to store the key pair automatically ~ /. Ssh/directory,Id_ Rsa is the private key, and id_rsa.pub is the public key ).