5

Cause i want to access my own EC2 from different host. It is hard to key the pem file in every host.

| improve this question | | | | |
2

Assuming SSH access:

# Turn on password authentication
sudo sed -i 's/^PasswordAuthentication.*/PasswordAuthentication yes/' /etc/ssh/sshd_config
# Reload SSHd configuration
sudo service sshd reload
# Set a password for the ec2-user
sudo passwd ec2-user
| improve this answer | | | | |
  • 1
    It is almost correct. but when i try to set passwd for ec2-user. passwd: Authentication token manipulation error. It seems that we don't have the default password that amazon gave up... – Kit Ho Jul 30 '11 at 16:24
  • 1
    Perhaps changing it as root! Updated answer. – h0tw1r3 Jul 30 '11 at 16:32

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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