One liner to add a public key to a remote authorized_keys
From the very, very useful Top Ten One-Liners from CommandLineFu Explained:
ssh remote-machine 'cat >> .ssh/authorized_keys' < .ssh/id_rsa.pub
authorized_keysFrom the very, very useful Top Ten One-Liners from CommandLineFu Explained:
ssh remote-machine 'cat >> .ssh/authorized_keys' < .ssh/id_rsa.pub
Leave a Reply