Forum | Documentation | Website | Blog

Skip to content
Snippets Groups Projects
Commit f6d3f172 authored by Robert Nelson's avatar Robert Nelson
Browse files

ssh: regenerate, as there is a small possibilty they will end up zero in size...


Signed-off-by: default avatarRobert Nelson <robertcnelson@gmail.com>
parent b02d811f
No related merge requests found
...@@ -271,9 +271,17 @@ debian) ...@@ -271,9 +271,17 @@ debian)
fi fi
fi fi
if [ ! -f /etc/ssh/ssh_host_dsa_key.pub ] ; then if [ ! -f /etc/ssh/ssh_host_ecdsa_key.pub ] ; then
rm -rf /etc/ssh/ssh_host_* || true rm -rf /etc/ssh/ssh_host_* || true
dpkg-reconfigure openssh-server dpkg-reconfigure openssh-server
sync
fi
#There is a chance, if user reboots to soon, these are not saved, thus a zero size...
if [ ! -s /etc/ssh/ssh_host_ecdsa_key.pub ] ; then
rm -rf /etc/ssh/ssh_host_* || true
dpkg-reconfigure openssh-server
sync
fi fi
if [ -f /boot/uboot/SOC.sh ] && [ -f /boot/uboot/run_boot-scripts ] ; then if [ -f /boot/uboot/SOC.sh ] && [ -f /boot/uboot/run_boot-scripts ] ; then
...@@ -336,9 +344,17 @@ ubuntu) ...@@ -336,9 +344,17 @@ ubuntu)
fi fi
fi fi
if [ ! -f /etc/ssh/ssh_host_dsa_key.pub ] ; then if [ ! -f /etc/ssh/ssh_host_ecdsa_key.pub ] ; then
rm -rf /etc/ssh/ssh_host_* || true
dpkg-reconfigure openssh-server
sync
fi
#There is a chance, if user reboots to soon, these are not saved, thus a zero size...
if [ ! -s /etc/ssh/ssh_host_ecdsa_key.pub ] ; then
rm -rf /etc/ssh/ssh_host_* || true rm -rf /etc/ssh/ssh_host_* || true
dpkg-reconfigure openssh-server dpkg-reconfigure openssh-server
sync
fi fi
if [ -f /boot/uboot/SOC.sh ] && [ -f /boot/uboot/run_boot-scripts ] ; then if [ -f /boot/uboot/SOC.sh ] && [ -f /boot/uboot/run_boot-scripts ] ; then
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment