summaryrefslogtreecommitdiff
path: root/share/hooks/005-remove-openssh-server-host-keys.chroot
blob: 862704981d44fa2d80ace65564d762c0e4dcaa17 (plain)
1
2
3
4
5
6
7
8
9
10
#!/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