Advertisement
Guest User

Untitled

a guest
Oct 15th, 2019
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.19 KB | None | 0 0
  1. ```bash
  2. cat ~/.ssh/id_rsa.pub | ssh username@remote_host "mkdir -p ~/.ssh && touch ~/.ssh/authorized_keys && chmod -R go= ~/.ssh && cat >> ~/.ssh/authorized_keys"
  3.  
  4. sudo systemctl restart ssh
  5. ```
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement