SHARE
TWEET

Untitled

a guest Jun 19th, 2019 49 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ssh -i /home/some_user/PEM_Keys/key.pem aaa@127.0.0.0
  2.      
  3. ssh -i /home/some_user/PEM_Keys/key.pem bbb@127.0.0.0
  4.      
  5. mkdir /home/bbb/.ssh
  6. mkdir /home/bbb/.ssh/authorized_keys
  7. sudo chown -R "bbb:bbb" /home/bbb/.ssh
  8. sudo chmod 0700 /home/bbb/.ssh
  9. sudo chmod 0600 /home/bbb/.ssh/authorized_keys
  10. sudo cp /home/aaa/.ssh/authorized_keys /home/bbb/.ssh/authorized_keys
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top