Generate Key Pair#
If it already exists, there is no need to generate it again.
$ ssh-keygen -t rsa
Upload Public Key#
$ ssh-copy-id -i ~/.ssh/id_rsa.pub [email protected]
Where "root" is the server user and "192.168.0.1" is the server IP. Then, enter the password as prompted.
Connect to the Server#
Connect to the server directly using SSH without entering a password.
$ ssh [email protected]