summaryrefslogtreecommitdiffstats
path: root/system-build/share/hooks/normal/0160-remove-openssh-server-host-keys.hook.chroot
blob: b108526fdfc8e1207749604a67a851b1d6542011 (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 system-config
# on system start.

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