File: 0160-remove-openssh-server-host-keys.hook.chroot

package info (click to toggle)
open-infrastructure-system-build 20161101-lts2-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 2,028 kB
  • ctags: 82
  • sloc: sh: 8,825; makefile: 128
file content (10 lines) | stat: -rwxr-xr-x 206 bytes parent folder | download | duplicates (5)
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