Advertisement
theitd

SSH Key Copy

Jan 31st, 2014
272
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.17 KB | None | 0 0
  1. ## Copy your ssh public key to a server from a machine that doesn't have ssh-copy-id
  2.  
  3. cat ~/.ssh/id_rsa.pub | ssh user@machine "mkdir ~/.ssh; cat >> ~/.ssh/authorized_keys"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement