I want to set PubkeyAuthentication no
in /etc/ssh/sshd_config
, but someone should be excluded, i.e: John
Asked
Active
Viewed 866 times
1 Answers
1
Add something like this to your sshd_config
:
Match User John
PubkeyAuthentication yes
Don't forget to sudo systemctl reload sshd

BulletBob
- 1,780
-
[root@login03 ~]# systemctl restart sshd and
[root@login03 ~]# sudo systemctl reload sshd
– stack Mar 25 '20 at 03:06 -
-
my configuration content is:PubkeyAuthentication no
Match User John
PubkeyAuthentication yes – stack Mar 25 '20 at 03:12 -