SHARE
TWEET

Untitled

a guest Jan 21st, 2019 49 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ~/.ssh/authorized_keys
  2.          Lists the public keys (RSA/DSA) that can be used for logging in
  3.          as this user.  The format of this file is described above.  The
  4.          content of the file is not highly sensitive, but the recommended
  5.          permissions are read/write for the user, and not accessible by
  6.          others.
  7.  
  8.          If this file, the ~/.ssh directory, or the user's home directory
  9.          are writable by other users, then the file could be modified or
  10.          replaced by unauthorized users.  In this case, sshd will not
  11.          allow it to be used unless the StrictModes option has been set to
  12.          “no”.
  13.    
  14. PasswordAuthentication no
  15.    
  16. sudo /etc/init.d/ssh restart
  17.    
  18. chmod 600 /data/dropbear/.ssh/authorized_keys
  19.    
  20. chmod 700 /data/dropbear/.ssh/authorized_keys # In case of MacOS X 10.6-10.8
  21.    
  22. chmod 755 /data/dropbear/ /data/dropbear/.ssh
  23.    
  24. $ ec2-authorize default -p 22
  25.    
  26. $ ec2-authorize default -p 22 --region us-west-1
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