Security – How to Block Specific Username from SSH

Securitysshd

I have testuser and I want that user to be able log-in locally, but not via ssh. How can I implement that?

Best Answer

Put DenyUsers user1 user2 user3 in /etc/ssh/sshd_config

Related Question