From d080f8327b6d5e0c8cbe8a9e206cdd19d5e16113 Mon Sep 17 00:00:00 2001 From: "Kyle J. McKay" Date: Wed, 5 Mar 2014 23:30:09 -0800 Subject: [PATCH] jailsetup.sh: explicity configure HostKey in sshd_config Since we generate exactly two protocol 2 host keys, explicitly configure them in sshd_config to avoid any possible HostKey defaults that could potentially result in looking for a different key that does not exist in the jail thus causing sshd to fail to startup in the jail. --- jailsetup.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/jailsetup.sh b/jailsetup.sh index 7256b24..0608ea5 100755 --- a/jailsetup.sh +++ b/jailsetup.sh @@ -211,6 +211,8 @@ UseDNS no PermitRootLogin no UsePrivilegeSeparation yes +HostKey /etc/ssh/ssh_host_rsa_key +HostKey /etc/ssh/ssh_host_dsa_key AuthorizedKeysFile /etc/sshkeys/%u StrictModes no -- 2.11.4.GIT