From f6504605d8f7e58dca5c3c67829497d5dd62081a Mon Sep 17 00:00:00 2001 From: "Kyle J. McKay" Date: Sat, 15 Feb 2014 00:04:30 -0800 Subject: [PATCH] Make the sshd jail listen port configurable Introduce Config.pm $sshd_jail_port that allows the Port setting of the sshd running in the jail to be configured. --- Girocco/Config.pm | 5 +++++ jailsetup.sh | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/Girocco/Config.pm b/Girocco/Config.pm index 951f0a5..d9c43b7 100644 --- a/Girocco/Config.pm +++ b/Girocco/Config.pm @@ -148,6 +148,11 @@ our $min_gc_interval = 604800; # 1 week # provided ../bin/update-pwd-db script about when and how it's invoked. our $update_pwd_db = 0; +# Port the sshd running in the jail should listen on +# Be sure to update $pushurl to match +# Not used if $pushurl is undef +our $sshd_jail_port = 22; + ## Paths diff --git a/jailsetup.sh b/jailsetup.sh index 3300726..7256b24 100755 --- a/jailsetup.sh +++ b/jailsetup.sh @@ -198,7 +198,7 @@ mkdir -p var/run/sshd if [ ! -s etc/ssh/sshd_config ]; then cat >etc/ssh/sshd_config <