One liner to add public key to authorized ssh keys

Alec Jacobson

November 05, 2012

weblog/

cat ~/.ssh/id_rsa.pub | ssh jacobson@pascal.cs.columbia.edu 'mkdir -p ~/.ssh; cat >> ~/.ssh/authorized_keys'