diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index b95ddb9983..a699762087 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,8 @@ +2013-04-12 Sancho Lerena + + * extensions/ssh_gateway.php: Implemented support to connect + Telnet/SSH on different ports than standard ones. + 2013-04-12 Mario Pulido * godmode/users/configure_user.php, diff --git a/pandora_console/extensions/ssh_gateway.php b/pandora_console/extensions/ssh_gateway.php index c3ea001e2c..ce51682f79 100644 --- a/pandora_console/extensions/ssh_gateway.php +++ b/pandora_console/extensions/ssh_gateway.php @@ -29,6 +29,7 @@ function ssh_gateway () { $HOST = get_parameter ("host", ""); $USER = get_parameter ("user", ""); + $PORT = get_parameter ("port", 0); // TODO: Put aditional filtering for ";" and "&" characters in user & host for security // because these params are passed to server exec() call :) @@ -50,12 +51,14 @@ function ssh_gateway () { if ($COMMIT == 1) { echo "

".__("You need to specify a user and a host address")."

"; } - + echo "
"; echo ""; echo ""; echo ""; + echo "
".__("Host address").""; echo "
".__("User").""; + echo "
".__("Port (use 0 for default)").""; echo "
"; echo __("Connect mode")."