Setp 1 : Edit the file sshd_config
vim /etc/ssh/sshd_config
Step 2 : Make changes on line 66 as below (ie from 'no' to 'yes')
PasswordAuthentication yes
Step 3 : Restart the sshd service using below command
/etc/init.d/sshd restart
(Till now password based auth is enabled)
Step 4 : To set passsword
Type the below command
#passwd
Changing password for user root.
New password: <enter password here>
Retype new password: <enter password here>
passwd: all authentication tokens updated successfully.
Step 5 : Thats All You Are Done !!!!
Password based authentication is enabled on the server.
vim /etc/ssh/sshd_config
Step 2 : Make changes on line 66 as below (ie from 'no' to 'yes')
PasswordAuthentication yes
Step 3 : Restart the sshd service using below command
/etc/init.d/sshd restart
(Till now password based auth is enabled)
Step 4 : To set passsword
Type the below command
#passwd
Changing password for user root.
New password: <enter password here>
Retype new password: <enter password here>
passwd: all authentication tokens updated successfully.
Step 5 : Thats All You Are Done !!!!
Password based authentication is enabled on the server.
No comments:
Post a Comment