Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have an EC2 instance on which i have set up a Git server. Now to access this server from eclipse plugin outside, i need a username/password for an instance user.

All i can see is that i have user but a ssh key file/ppk file using which i can connect. Can anyboldy help me on how can i create user with password on same instance & access the instance from this user from outside say eclipse?


share|improve this question
up vote 7 down vote accepted

You need to enable password authentication first before setting a user password. To do that:

  1. Edit the sshd configuration file /etc/ssh/sshd_config as root.
  2. Find the parameter PasswordAuthentication. Make sure it's uncommented and set to yes.
  3. Save the file and exit. Restart ssh service for this to take effect.

Now, using the following command to set the user password:

passwd UserName

That's it! You should try to login now without the key file.

share|improve this answer
Thanks a lot. It worked. – Ambivert Nov 22 '12 at 7:13


#sudo passwd username

Then enter your desired password.

share|improve this answer
Thanks a lot but i tried to create a new user in EC2 instance using command line and provided password but when trying to connect using eclipse, could not succeed. Any idea? – Ambivert Nov 22 '12 at 6:37

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.