1. Generate a Key Pair #$ ssh-keygen -t rsa -b 4096 2. Upload your Public Key #$ ssh-copy-id -i KEYNAME USERNAME@IP -p PORT 3. Connecting to server via ssh #$ ssh -i KEYNAME -p 'PORT' 'USERNAME@IP' References #https://www.linode.com/docs/security/authentication/use-public-key-authentication-with-ssh/