I have problem, because each reboot of my Debian 8 is generating new host RSA keys. How to avoid this?
Debian 8 VPS - a reboot regenerates host ssh keys
debian;sshd;reboot
Ok, I know why this happens. In /etc/rc.local is script:#!/bin/shrm -f etc/ssh/ssh_host_*/usr/bin/ssh-keygen -t rsa -N '' -f /etc/ssh/ssh_host_rsa_key/usr/bin/ssh-keygen -t dsa -N '' -f /etc/ssh/ssh_host_dsa_key/usr/bin/ssh-keygen -t rsa1 -N '' -f /etc/ssh/ssh_host_key/usr/bin/ssh-keygen -t ecdsa -N '' -f /etc/ssh/ssh_host_ecdsa_key/usr/bin/ssh-keygen -t ed25519 -N '' -f /etc/ssh/ssh_host_ed25519_keysystemctl restart sshDHCP6CCTLKEY=/etc/wide-dhcpv6/dhcp6cctlkey# The key mustn\'t be world readableumask 066echo Generating ${DHCP6CCTLKEY}... >&2dd if=/dev/random bs=32 count=1 2>/dev/null |   uuencode -m ${DHCP6CCTLKEY} | head -n 2 | tail -n 1 > ${DHCP6CCTLKEY}umask 022mv -f /etc/rc.local.orig /etc/rc.local