Advertisement
Javi

AWS: login to ec2 without priv key

Jul 14th, 2014
285
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. Accediendo a aws sin priv key (http://stackoverflow.com/questions/8339912/allowing-users-to-ssh-to-an-ec2-ubuntu-instance):
  2.  
  3.  
  4.  
  5. Edit /etc/ssh/sshd_config and set PasswordAuthentication to yes.
  6.  
  7. Enter the command sudo /etc/init.d/sshd reload.
  8.  
  9. Then you could Create a User with:
  10.  
  11. useradd NAME
  12.  
  13. (check the man for options on how to set home directory etc...)
  14.  
  15. Then
  16.  
  17. passwd SOMETHING
  18.  
  19. You will be prompted for a New password
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement