forked from coreos/fedora-coreos-config
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
manifest: move sshd config fragments to overlay sshd_config.d on F32
Fedora 32 supports sshd_config.d. Use it. This allows users to easily re-enable password authentication if desired. We still need to disable the default AuthorizedKeysFile directive, since the Include directive appears after it in sshd_config. On Fedora 31, the sshd_config.d fragments will be ignored, so continue to edit sshd_config there.
- Loading branch information
Showing
4 changed files
with
28 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 5 additions & 0 deletions
5
overlay.d/05core/etc/ssh/sshd_config.d/20-authorized-keys.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# This file is ignored on Fedora 31. | ||
|
||
# Read authorized_keys fragments written by Ignition and Afterburn | ||
# https://github.com/coreos/fedora-coreos-tracker/issues/139 | ||
AuthorizedKeysFile .ssh/authorized_keys .ssh/authorized_keys.d/ignition .ssh/authorized_keys.d/afterburn |
7 changes: 7 additions & 0 deletions
7
overlay.d/15fcos/etc/ssh/sshd_config.d/04-disable-passwords.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# This file is ignored on Fedora 31. | ||
|
||
# Disable password logins by default. | ||
# https://github.com/coreos/fedora-coreos-tracker/issues/138 | ||
# This file must sort before 05-redhat.conf, which enables | ||
# PasswordAuthentication. | ||
PasswordAuthentication no |