Wednesday, 13 July 2016

thumbnail

How-to-enable-password-authentication-in-Ubuntu-14-instance-on-Amazon-EC2

Introduction

On amazon Ubuntu instnace by default password authentication is disabled. To enable password we have to configure sshd configuration.

1. First login with key pair you have been provided :-

ssh -i root.pem ubuntu@10.10.10.10

2. Now configure sshd config file :-

sudo vim /etc/ssh/sshd_config


Search for PasswordAuthentication and change it to "yes" as given above on the screenshot.

Now restart the ssh service to take effect

sudo service ssh restart

3. Now set the password for your ubuntu user or add new user for safety :-

sudo passwd ubuntu



Or you can add new user :-

sudo adduser sarfaraz


Now you can try loging in via ssh it will ask you for the password.

That's it 
Enjoy using, Please do Likes and comments and share.

Related Posts :

Subscribe by Email

Follow Updates Articles from This Blog via Email

No Comments