Project

General

Profile

Actions

Bug #5713

closed

SSHDCond package broken - Incorrect path in /etc/sshd file

Added by Matt Savicki over 8 years ago. Updated almost 8 years ago.

Status:
Rejected
Priority:
Normal
Category:
sshdcond
Target version:
-
Start date:
12/29/2015
Due date:
% Done:

0%

Estimated time:
Plus Target Version:
Affected Version:
Affected Plus Version:
Affected Architecture:
All

Description

Installed the SSHDCond package on PFSense 2.2.6 and it was not working. I found the issue was an incorrect hard coded path in /etc/sshd. I got it working on my system by editing a section of code in that script to use a variable defined earlier in the script for the path.

Modified section:

/* Apply package SSHDCond settings if config file exists */
if (file_exists("{$sshConfigDir}/sshd_extra")) {
$fdExtra = fopen("{$sshConfigDir}/sshd_extra", 'r');
$szExtra = fread($fdExtra, 1048576); // Read up to 1MB from extra file
$sshconf .= $szExtra;
fclose($fdExtra);
}

Variable defined earlier in the script:

$sshConfigDir = "/etc/ssh";

I am still new to the UNIX world and PFsense so I hope I have reported this correctly.

Actions

Also available in: Atom PDF