Advertisement
Guest User

Untitled

a guest
Jul 14th, 2015
217
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. $ cat /home/tim/.ssh/id_rsa.pub | ssh tim@just.some.other.server 'cat >> .ssh/authorized_keys'
  2. Password:
  3. cat: >>: No such file or directory
  4. cat: .ssh/authorized_keys: No such file or directory
  5.  
  6. $ ssh-copy-id tim@just.some.other.server
  7.  
  8. scp ~/.ssh/id_rsa.pub user@remote.example.com:/tmp/id_rsa.pub
  9. ssh user@remote.example.com
  10. cat /tmp/id_rsa.pub >> ~/.ssh/authorized_keys"
  11.  
  12. ssh tim@just.some.other.server sh -c "'cat >> .ssh/authorized_keys'" < /home/tim/.ssh/id_rsa.pub
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement