Cause i want to access my own EC2 from different host. It is hard to key the pem file in every host.
1 Answer
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
-
1It 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... Jul 30, 2011 at 16:24
-
1