create key pair and download the files (~/.ssh)

ssh-keygen -t rsa -b 2048

add public key to authorized keys /.ssh/authorized_key

cat key.pub >> ~/.ssh/authorized_keys

login from local machine

ssh user@example.com -i /.ssh/keyfile
Tagged as Shell, Ubuntu

0 Comments

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Browse by topic