Copy ssh key in one command

This is absolutely brilliant

cat .ssh/id_rsa.pub | ssh remoteserver.example.com 'cat >> .ssh/authorized_keys'

All credit to Matt Might

Comments

better: ssh-copy-id remoteserver.example.com

Add new comment