Bug #11786
openSSH incomplete setup and startup fail while recovering XML backup in a fresh install of pfSense 2.5.0
0%
Description
Recovering a XML exported with RDD data and extra package data (about 8,2MB of data) causes SSH service configuration to hang, and service startup impossible.
Executing the commands above in <S>hell command and in <P>HP commands (Diagnostics / Command Prompt), in the order as file /etc/sshd, resolves the issue. It seems like /etc/sshd execution hangs at mark_subsystem_dirty('sshdkeys') call.
<S> /usr/bin/nice -n20 /usr/bin/ssh-keygen -t rsa -b 4096 -N '' -f /etc/ssh/ssh_host_rsa_key
<S> /usr/bin/nice -n20 /usr/bin/ssh-keygen -t rsa -b 4096 -N '' -f /etc/ssh/ssh_host_ed25519_key
<P> clear_subsystem_dirty('sshdkeys');
<P> mwexec("/usr/sbin/sshd");
Updated by Michele Zamboni over 3 years ago
I confirm this happened to me with a fresh install of pfsense 2.5.1 Many thanks for the workaround!
The xml backup file I used for restore didn't include any RDD data at all (filesize: 241Kb).