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 #1

Updated by Chris Buechler over 8 years ago

  • Project changed from pfSense to pfSense Packages
  • Category changed from Operating System to sshdcond
  • Status changed from New to Confirmed
  • Target version deleted (2.3)
  • Affected Version deleted (2.2.x)

I guess it's arguable whether the package itself or its integration in base is wrong. It'd be better to fix the package since users would get that more quickly, though it probably should be in /etc/ssh/

Actions #2

Updated by Jim Thompson about 8 years ago

  • Assignee set to Renato Botelho
Actions #3

Updated by Renato Botelho almost 8 years ago

  • Status changed from Confirmed to Rejected

sshdcond package was deprecated in pfSense 2.3

Actions

Also available in: Atom PDF