Ubuntu – 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