#! /usr/bin/patch -p0
# $Header: /global/src/etc/cl-manage-scripts/patches/RCS/P-sshd_config-AuthorizedKeysFile-var-spool-U18,v 1.1 2020/11/06 12:58:00 pb22 Exp $
# patch to use /var/spool/ssh/$USER for ssh user key
# patch-file matches = /var/spool/ssh/%u
# patch-file distmatches = Ubuntu.[A-F]|Ubuntu.1[8-9]|Ubuntu.2
# Process using /usr/bin/cl-patch-file unless matching the above
--- /etc/ssh/sshd_config	2012-04-28 12:24:36.000000000 +0100
+++ /etc/ssh/sshd_config	2013-05-26 09:44:08.000000000 +0100
@@ -41 +41 @@
-AuthorizedKeysFile	/local/scratch/%u/.ssh/authorized_keys .ssh/authorized_keys .ssh/authorized_keys2
+AuthorizedKeysFile	/var/spool/ssh/%u /local/scratch/%u/.ssh/authorized_keys .ssh/authorized_keys .ssh/authorized_keys2
