]> git.ekhem.eu.org Git - server.git/commit
[sshd] Disable password authentication.
authorJakub Czajka <jakub@ekhem.eu.org>
Sun, 25 Sep 2022 15:11:45 +0000 (17:11 +0200)
committerJakub Czajka <jakub@ekhem.eu.org>
Wed, 27 Sep 2023 21:57:20 +0000 (23:57 +0200)
commit8d2a0e6c0606c44c335696353ee984d90b58c3e2
tree2d3807df819d538d6e005d6458e0222f45270574
parentdf04c696ec2fe6431ab7b4628c087a7bbd8055d7
[sshd] Disable password authentication.

Client can authenticate with `sshd` through one of following
authentication methods (corresponding sshd_config option in brackets):
- host-based (`HostbasedAuthentication`),
- public key (`PubkeyAuthentication`),
- challenge-response (`ChallengeResponseAuthentication`),
- password (`PasswordAuthentication`).

By default, only `PubkeyAuthentication` and `PasswordAuthentication`
are enabled. This commit disables `PasswordAuthentication`. Users
can now login only using public key authentication.
sshd/README
sshd/sshd_config