Copy your SSH keys to remote server

By March 16, 2017Linux

cat ~/.ssh/id_rsa.pub | ssh root@example.com 'cat - >> ~/.ssh/authorized_keys'

Don’t forget you need local permissions set properly to use ssh keys.

chmod 700 ~/.ssh && chmod 600 ~/.ssh/*

0 0 votes
Article Rating
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments