From 3327d8b2c4a7146cc973a98984bdb3aabc3081e7 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 28 Apr 2024 16:08:30 +0200 Subject: Setting AuthorizedKeysFile in sshd_config to /etc/ssh/authorized_keys/%u .ssh/authorized_keys. Signed-off-by: Daniel Baumann --- debian/local/sshd_config.d/user-keys.conf | 3 +++ debian/openssh-server.dirs | 1 + 2 files changed, 4 insertions(+) create mode 100644 debian/local/sshd_config.d/user-keys.conf diff --git a/debian/local/sshd_config.d/user-keys.conf b/debian/local/sshd_config.d/user-keys.conf new file mode 100644 index 0000000..a92a375 --- /dev/null +++ b/debian/local/sshd_config.d/user-keys.conf @@ -0,0 +1,3 @@ +# /etc/ssh/sshd_config.d/user-keys.conf + +AuthorizedKeysFile /etc/ssh/authorized_keys/%u .ssh/authorized_keys diff --git a/debian/openssh-server.dirs b/debian/openssh-server.dirs index 6639eca..4ee9a32 100644 --- a/debian/openssh-server.dirs +++ b/debian/openssh-server.dirs @@ -1 +1,2 @@ +etc/ssh/authorized_keys etc/ssh/sshd_config.d -- cgit v1.2.3