0

I want to set PubkeyAuthentication no in /etc/ssh/sshd_config, but someone should be excluded, i.e: John

Gryu
  • 7,279
  • 9
  • 31
  • 52
stack
  • 103
  • 2
  • who can give me a help? – stack Mar 23 '20 at 08:42
  • 3
    Does this answer your question? [How to block specific username from ssh?](https://askubuntu.com/questions/853252/how-to-block-specific-username-from-ssh) – muru Mar 23 '20 at 10:39

1 Answers1

1

Add something like this to your sshd_config:

Match User John
    PubkeyAuthentication yes

Don't forget to sudo systemctl reload sshd

BulletBob
  • 1,750
  • 2
  • 7
  • 12