SHARE
TWEET

Untitled

a guest Jun 18th, 2019 50 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/bin/bash
  2. export SSH_ASKPASS=/usr/bin/ksshaskpass
  3. /usr/bin/ssh-add  ~/.ssh/id_rsa.2
  4. /usr/bin/ssh-add  ~/.ssh/id_rsa.3
  5.      
  6. ssh-keygen -t rsa
  7.      
  8. cat .ssh/id_rsa.pub | ssh USERNAME@IP_ADDRESS 'cat >> .ssh/authorized_keys'
  9.  cat .ssh/id_rsa.pub | ssh USERNAME@IP_ADDRESS 'cat >> .ssh/authorized_keys2'
  10.      
  11. ssh <USERNAME>@<IP_ADDRESS>
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
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top