Use ssh-keygen -A instead of dpkg-reconfigure to regen ssh keys.

This commit is contained in:
parazyd 2018-01-29 15:17:12 +01:00
parent c8f1a3b9c5
commit 0356a77ede
No known key found for this signature in database
GPG Key ID: F0CB28FCF78637DE
1 changed files with 1 additions and 1 deletions

View File

@ -10,6 +10,6 @@
# bits.
## regen ssh keys on first boot
[ -f /etc/ssh/ssh_host_rsa_key.pub ] || dpkg-reconfigure openssh-server
[ -f /etc/ssh/ssh_host_rsa_key.pub ] || ssh-keygen -A
exit 0