From 882fffe24de7b3b6ca4ad3bd76835556f4de5d92 Mon Sep 17 00:00:00 2001 From: Javi Fontan Date: Thu, 23 Jul 2015 10:29:09 -0400 Subject: [PATCH] gh-12: generate host ssh keys in debian based distros --- base_deb/etc/one-context.d/02-ssh_host_key | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100755 base_deb/etc/one-context.d/02-ssh_host_key diff --git a/base_deb/etc/one-context.d/02-ssh_host_key b/base_deb/etc/one-context.d/02-ssh_host_key new file mode 100755 index 0000000..d9bb27f --- /dev/null +++ b/base_deb/etc/one-context.d/02-ssh_host_key @@ -0,0 +1,6 @@ +#!/bin/bash + +if [ ! -f /etc/ssh/ssh_host_rsa_key ]; then + dpkg-reconfigure openssh-server +fi +