summaryrefslogtreecommitdiff
path: root/src/config.rs
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2022-04-29 18:59:11 +0300
committerLars Wirzenius <liw@liw.fi>2022-04-29 18:59:11 +0300
commit8aeb0f0d40f421befb0b009e51b0c05937239c6c (patch)
treec597f8a109b1a921c0f953dbc7aee7704ba8023e /src/config.rs
parent99b4c180e7932cfe180323ba35956b1184212f51 (diff)
downloadvmadm-8aeb0f0d40f421befb0b009e51b0c05937239c6c.tar.gz
feat: optionally turn off authorized keys support in SSH server
If the specification has "allow_authorized_keys: false" (possibly from new config setting "default_allow_authorized_keys"), the SSH server configuration will tell the server to not consult a user's authorized keys file at all. Sponsored-by: author
Diffstat (limited to 'src/config.rs')
-rw-r--r--src/config.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/config.rs b/src/config.rs
index 37cd98e..8de4751 100644
--- a/src/config.rs
+++ b/src/config.rs
@@ -44,6 +44,9 @@ pub struct Configuration {
/// Path name to SSH CA public key for verifying SSH user certificates.
pub user_ca_pubkey: Option<PathBuf>,
+
+ /// Should SSH authorized keys files be allowed by default?
+ pub default_allow_authorized_keys: Option<bool>,
}
/// Errors from this module.