tUse ssh-keygen -A instead of dpkg-reconfigure to regen ssh keys. - arm-sdk - os build toolkit for various embedded devices
HTML git clone https://git.parazyd.org/arm-sdk
DIR Log
DIR Files
DIR Refs
DIR Submodules
DIR README
DIR LICENSE
---
DIR commit 0356a77edee0db5183178c10af0fa75956f79903
DIR parent c8f1a3b9c52583a348b2d0e6acc038b4c7d9a039
HTML Author: parazyd <parazyd@dyne.org>
Date: Mon, 29 Jan 2018 15:17:12 +0100
Use ssh-keygen -A instead of dpkg-reconfigure to regen ssh keys.
Diffstat:
M extra/generic-root/etc/rc.local | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
DIR diff --git a/extra/generic-root/etc/rc.local b/extra/generic-root/etc/rc.local
t@@ -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