ssh username@server
ssh root@10.1.0.101

If we press no, the ssh will disconnect.

For safety reason, any input here will not be shown.


If the password is wrong, you will get the tips Permission denied, please try again.

ssh-keygen
Press down enter to save the default directory


ssh-copy-id username@server_ip

Server 10.1.0.101

Connected Server 10.1.0.102


RSA (Rivest–Shamir–Adleman) is a public-key cryptosystem that is widely used for secure data transmission.
RSA (cryptosystem) - Wikipedia
In a public-key cryptosystem, the encryption key is public and distinct from the decryption key, which is kept secret (private).
public key: send to others, can be public
private key: secret key, we need to make it safe