Introduction
1. First login with key pair you have been provided :-
2. Now configure sshd config file :-
Search for PasswordAuthentication and change it to "yes" as given above on the screenshot.
Now restart the ssh service to take effect
3. Now set the password for your ubuntu user or add new user for safety :-
Or you can add new user :-
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.
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.
05:02
Tags :
AWS
,
Linux
,
Ubuntu-14.04
Subscribe by Email
Follow Updates Articles from This Blog via Email
No Comments