Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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?

Regards.

share|improve this question
add comment

2 Answers

up vote 1 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. –  Lalit Nov 22 '12 at 7:13
add comment

Try:

#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? –  Lalit Nov 22 '12 at 6:37
add comment

Your Answer

 
discard

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.