ssh allow password authentication only for specific users

vi /etc/ssh/sshd_config
Match User root
PasswordAuthentication yes

service sshd restart
Redirecting to /bin/systemctl restart sshd.service

Leave a Reply

Your email address will not be published. Required fields are marked *