enable-password-access-to-your-amazon-ec2-linux-instance

http://bensnotepad.com/enable-password-access-to-your-amazon-ec2-linux-instance/

 

1.  SSH into your instance.

2.  Edit /etc/ssh/sshd_config and set PasswordAuthentication to yes.

One way to do this is to enter the command vi /etc/ssh/sshd_config, then scroll down toPasswordAuthentication.  Press i to go into text insert mode and change the no to yes.  Then press ESC, and type :wq and press enter to save and quit.

3.  Enter the command /etc/init.d/sshd reload. (for Ubuntu, enter the command reload ssh)

4.  Set your password if you haven’t already, with the passwd command.

Note: This was tested with SUSE Linux.  Directory and file names may be slightly different depending on your flavor of Linux.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s