1
0
mirror of https://github.com/phusion/baseimage-docker.git synced 2026-03-26 20:38:58 +00:00
Files
baseimage-docker/image/00_regen_ssh_host_keys.sh
Hongli Lai (Phusion) d2d1f713a4 Add forgotten file
2014-01-31 19:29:50 +01:00

7 lines
154 B
Bash
Executable File

#!/bin/bash
set -e
if [[ ! -e /etc/ssh/ssh_host_rsa_key ]]; then
echo "No SSH host key available. Generating one..."
dpkg-reconfigure openssh-server
fi