Project

General

Profile

Actions

Bug #11786

open

SSH incomplete setup and startup fail while recovering XML backup in a fresh install of pfSense 2.5.0

Added by Bruno Andrade da Silva 7 months ago. Updated 6 months ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Services
Target version:
-
Start date:
04/06/2021
Due date:
% Done:

0%

Estimated time:
Plus Target Version:
Release Notes:
Default
Affected Version:
2.5.0
Affected Architecture:
amd64

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");

Actions #1

Updated by Michele Zamboni 6 months 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).

Actions

Also available in: Atom PDF