Using SSH public key anthentication makes the SSH login process securer and easier, that you don’t need to remember the password.
From here.
First make sure you have the local SSH “private/public keypair” ready. If not, run “ssh-keygen” to create.
Then you just need to run the following command:
1 | # "x.x.x.x" is the target host, "username" is the login account on the host. |