Usually people try to disable ssh login with password only. I'm asking about reverse situation. Does sshd_config allow to disable authentication with keys only?
Asked
Active
Viewed 158 times
2 Answers
0
As of today, one more option you may use AuthenticationMethods
, please refer https://www.freebsd.org/cgi/man.cgi?sshd_config(5)
Please read doc carefully before apply.

asktyagi
- 2,860
- 2
- 8
- 25
0
http://www.manpagez.com/man/5/sshd_config/
PubkeyAuthentication
Specifies whether public key authentication is allowed. The
default is ``yes''. Note that this option applies to protocol
version 2 only.

ceejayoz
- 32,910
- 7
- 82
- 106