SSH Key Authentication

There are millions of articles about how to do this. What’s one more?

First, generate and identity file: ssh-keygen, which will display some processing information on your screen, and return you to a prompt.

Next, we can use one command to copy your identity file to the remote host: ssh-copy-id -i ~/.ssh/id_rsa.pub username@remote.example.org

If you happen to utilize a custom port, change that to: ssh-copy-id -i ~/.ssh/id_rsa.pub "username@remote.example.org -p PORT"

That’s it.