December 6, 2016 · Linux Server

Easy way to add SSH key to your Linux vm / cloud

ssh-keygen -t rsa
cat ~/.ssh/id_rsa.pub | ssh [email protected] 'cat >> ~/.ssh/authorized_keys'

or

ssh-copy-id [email protected]