Tuesday, May 24, 2016

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


0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home