SSH Key
To generate an SSH Key, enter the following command in the terminal:
Press enter to save key in default location. Passphrase is optional; press enter twice to bypass.
ssh-keygen
Once your SSH key has been generated, copy the key to the remote server using the command below: (When prompted, enter the password for the user of the remote server that you’ve chosen.)
ssh-copy-id user@server
Log into the remote server using the following command; no password should be necessary:
ssh user@server