Monday 15 April 2013

To Adduser on ec2- instance and login it by without ppk/ To set Password Authentication for User



To Adduser on ec2- instance and login it by without ppk / To set  Password Authentication for User :-
Steps:-
          1)        First login to server.
)               2)     Command :-  sudo  adduser  username
          3)       Command for password set :-  sudo  passwd  username

            To set root permission for created user:-

         4)      Sudo   visudo
         5)      Set permission same as root like…

           Under below line
root            ALL=(ALL) ALL
 
      Manohar   ALL= (ALL) ALL
 
6)   Now need to enable PasswordAuthentication 
7)      Edit the file name:- vi /etc/ssh/ssh_config
8)      Uncomment the PasswordAuthentication and set PasswordAuthentication=yes
9)      After setting the password authentication reload the sshd service or restart the ssh service. 
10)   Sudo  /etc/init.d/sshd reload
 
11)  Please verify it by using login to ec2-instance through username and password. 
 
 

No comments:

Post a Comment