From 3748ea9639537d06563ae9f7d57e187088a767e2 Mon Sep 17 00:00:00 2001 From: Stephen Gran Date: Sun, 9 Oct 2011 20:45:52 +0100 Subject: [PATCH] and we need this now Signed-off-by: Stephen Gran --- modules/ssh/templates/sshd_config.erb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/ssh/templates/sshd_config.erb b/modules/ssh/templates/sshd_config.erb index 6cf1f9cc1..0bc6efb7d 100644 --- a/modules/ssh/templates/sshd_config.erb +++ b/modules/ssh/templates/sshd_config.erb @@ -76,6 +76,10 @@ AcceptEnv LANG LC_* Subsystem sftp /usr/lib/openssh/sftp-server UsePAM yes +<% if nodeinfo.has_key?('wheezy') and nodeinfo['wheezy'] %> +AuthorizedKeysFile /etc/ssh/userkeys/%u /var/lib/misc/userkeys/%u +<% else %> AuthorizedKeysFile /etc/ssh/userkeys/%u AuthorizedKeysFile2 /var/lib/misc/userkeys/%u +<% end %> PasswordAuthentication no -- 2.20.1