Creating User
You have to create a user “training” and set its password “password”
Add user in CentOS, open a terminal
sudo useradd trainingAssign a password using passwd command and set the password: “password”
sudo passwd trainingEdit the sudoers file through vi command
You have to follow either of the 2 options
Add a new highlighted line in this file
2. Replace # %wheel with training in the above line.
Once this is done, save the file using Esc :wq!
Set
PasswordAuthenticationas yes and restart ssh daemon
Uncomment PasswordAuthentication yes and comment the PasswordAuthentication no
Last updated