SSH incomplete setup and startup fail while recovering XML backup in a fresh install of pfSense 2.5.0
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