Codebase list live-build / 640ffce2-7308-4f99-a22b-65bbe1ce43f7/main share / hooks / normal / 0160-remove-openssh-server-host-keys.hook.chroot
640ffce2-7308-4f99-a22b-65bbe1ce43f7/main

Tree @640ffce2-7308-4f99-a22b-65bbe1ce43f7/main (Download .tar.gz)

0160-remove-openssh-server-host-keys.hook.chroot @640ffce2-7308-4f99-a22b-65bbe1ce43f7/mainraw · history · blame

#!/bin/sh

set -e

# Remove OpenSSH Host Keys.
#
# This removes openssh-server host keys, they are regenerated by live-config
# on system start.

rm -f /etc/ssh/ssh_host_*_key /etc/ssh/ssh_host_*_key.pub