Disable direct login in ssh
How to disable direct login for the user
Edit /etc/ssh/sshd_config
Add the lines
Match User !user_name
PasswordAuthentication no
Restart the ssh service
service sshd restart
Edit /etc/ssh/sshd_config
Add the lines
Match User !user_name
PasswordAuthentication no
Restart the ssh service
service sshd restart