5

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

1 Answer 1

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
2
  • 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...
    – TheOneTeam
    Jul 30, 2011 at 16:24
  • 1
    Perhaps changing it as root! Updated answer.
    – h0tw1r3
    Jul 30, 2011 at 16:32

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .