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

ssh-keygen -t rsa -b 2048

add public key to authorized keys /.ssh/authorized_key

cat >> ~/.ssh/authorized_keys

login from local machine

ssh -i /.ssh/keyfile
Tagged as Shell, Ubuntu


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