Advertisement
Javi

bash: add authorized key to a machine

Aug 4th, 2019
170
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.11 KB | None | 0 0
  1. # Add authorized key to a machine
  2.  
  3. cat ~/.ssh/id_rsa.pub | ssh user@123.45.67.89 "cat >> ~/.ssh/authorized_keys"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement