mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-27 03:07:43 +02:00
allow SSH agent forwarding to be configured via WebUI
Fixes #11931 Signed-off-by: Peter Müller <peter.mueller@ipfire.org> Cc: Michael Tremer <michael.tremer@ipfire.org> Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
committed by
Michael Tremer
parent
e1f6dfcbbc
commit
e918b62ae2
@@ -2,7 +2,7 @@
|
||||
###############################################################################
|
||||
# #
|
||||
# IPFire.org - A linux based firewall #
|
||||
# Copyright (C) 2007-2014 IPFire Team <info@ipfire.org> #
|
||||
# Copyright (C) 2007-2019 IPFire Team <info@ipfire.org> #
|
||||
# #
|
||||
# This program is free software: you can redistribute it and/or modify #
|
||||
# it under the terms of the GNU General Public License as published by #
|
||||
@@ -105,6 +105,7 @@ else {
|
||||
# used
|
||||
$remotesettings{'ENABLE_SSH_PASSWORDS'} = 'on' unless exists $remotesettings{'ENABLE_SSH_PASSWORDS'};
|
||||
$remotesettings{'ENABLE_SSH_KEYS'} = 'on' unless exists $remotesettings{'ENABLE_SSH_KEYS'};
|
||||
$remotesettings{'SSH_AGENT_FORWARDING'} = 'off' unless exists $remotesettings{'SSH_AGENT_FORWARDING'};
|
||||
|
||||
$checked{'ENABLE_SSH'}{'off'} = '';
|
||||
$checked{'ENABLE_SSH'}{'on'} = '';
|
||||
@@ -121,6 +122,9 @@ $checked{'ENABLE_SSH_KEYS'}{$remotesettings{'ENABLE_SSH_KEYS'}} = "checked='chec
|
||||
$checked{'SSH_PORT'}{'off'} = '';
|
||||
$checked{'SSH_PORT'}{'on'} = '';
|
||||
$checked{'SSH_PORT'}{$remotesettings{'SSH_PORT'}} = "checked='checked'";
|
||||
$checked{'SSH_AGENT_FORWARDING'}{'off'} = '';
|
||||
$checked{'SSH_AGENT_FORWARDING'}{'on'} = '';
|
||||
$checked{'SSH_AGENT_FORWARDING'}{$remotesettings{'SSH_AGENT_FORWARDING'}} = "checked='checked'";
|
||||
|
||||
&Header::openpage($Lang::tr{'remote access'}, 1, '');
|
||||
|
||||
@@ -161,6 +165,11 @@ print <<END
|
||||
<td><input type='checkbox' name='SSH_PORT' $checked{'SSH_PORT'}{'on'} /></td>
|
||||
<td width='100%' class='base'>$Lang::tr{'ssh port'}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td> </td>
|
||||
<td><input type='checkbox' name='SSH_AGENT_FORWARDING' $checked{'SSH_AGENT_FORWARDING'}{'on'} /></td>
|
||||
<td width='100%' class='base'>$Lang::tr{'ssh agent forwarding'}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align='right' colspan='3'>
|
||||
<input type='submit' name='ACTION' value='$Lang::tr{'ssh tempstart15'}' />
|
||||
|
||||
Reference in New Issue
Block a user