# HG changeset patch # User xcko <24556661+xcko@users.noreply.github.com> # Date 1553094505 25200 # Node ID cf8dc6204fb68c21a4855542737ac4a74518be46 # Parent 35a1e8de3aecc715a2ee82ad436d87ee5401c71b support openssh long option -o Port=XXXX (#68) diff -r 35a1e8de3aec -r cf8dc6204fb6 cli-runopts.c --- a/cli-runopts.c Wed Mar 20 16:05:37 2019 +0100 +++ b/cli-runopts.c Wed Mar 20 08:08:25 2019 -0700 @@ -891,6 +891,7 @@ #ifndef DISABLE_SYSLOG "\tUseSyslog\n" #endif + "\tPort\n" ); exit(EXIT_SUCCESS); } @@ -909,5 +910,10 @@ } #endif + if (match_extendedopt(&optstr, "Port") == DROPBEAR_SUCCESS) { + cli_opts.remoteport = optstr; + return; + } + dropbear_log(LOG_WARNING, "Ignoring unknown configuration option '%s'", origstr); }