From mboxrd@z Thu Jan 1 00:00:00 1970 From: Peter =?utf-8?q?M=C3=BCller?= To: development@lists.ipfire.org Subject: [PATCH 2/3] allow SSH agent forwarding to be configured via WebUI Date: Mon, 08 Apr 2019 16:35:00 +0000 Message-ID: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============3622231778610281918==" List-Id: --===============3622231778610281918== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Fixes #11931 Signed-off-by: Peter M=C3=BCller Cc: Michael Tremer --- html/cgi-bin/remote.cgi | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/html/cgi-bin/remote.cgi b/html/cgi-bin/remote.cgi index 1b3dfed70..10d94fe99 100644 --- a/html/cgi-bin/remote.cgi +++ b/html/cgi-bin/remote.cgi @@ -2,7 +2,7 @@ ############################################################################= ### # = # # IPFire.org - A linux based firewall = # -# Copyright (C) 2007-2014 IPFire Team = # +# Copyright (C) 2007-2019 IPFire Team = # # = # # 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'} =3D 'on' unless exists $remotesetti= ngs{'ENABLE_SSH_PASSWORDS'}; $remotesettings{'ENABLE_SSH_KEYS'} =3D 'on' unless exists $remotesettings{'= ENABLE_SSH_KEYS'}; + $remotesettings{'SSH_AGENT_FORWARDING'} =3D 'off' unless exists $remotesett= ings{'SSH_AGENT_FORWARDING'}; =20 $checked{'ENABLE_SSH'}{'off'} =3D ''; $checked{'ENABLE_SSH'}{'on'} =3D ''; @@ -121,6 +122,9 @@ $checked{'ENABLE_SSH_KEYS'}{$remotesettings{'ENABLE_SSH_K= EYS'}} =3D "checked=3D'chec $checked{'SSH_PORT'}{'off'} =3D ''; $checked{'SSH_PORT'}{'on'} =3D ''; $checked{'SSH_PORT'}{$remotesettings{'SSH_PORT'}} =3D "checked=3D'checked'"; +$checked{'SSH_AGENT_FORWARDING'}{'off'} =3D ''; +$checked{'SSH_AGENT_FORWARDING'}{'on'} =3D ''; +$checked{'SSH_AGENT_FORWARDING'}{$remotesettings{'SSH_AGENT_FORWARDING'}} = =3D "checked=3D'checked'"; =20 &Header::openpage($Lang::tr{'remote access'}, 1, ''); =20 @@ -161,6 +165,11 @@ print < $Lang::tr{'ssh port'} + +   + + $Lang::tr{'ssh agent forwarding'} + --=20 2.16.4 --===============3622231778610281918==--