Skip to content

Commit c7cf2f2

Browse files
authored
Merge pull request #434 from github/lildude/fix-ssh-port
Switch SSH port and extended options to ensure correct port selection
2 parents 50f4008 + 27e225a commit c7cf2f2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

share/github-backup-utils/ghe-ssh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ if [ -z "$GHE_DISABLE_SSH_MUX" ]; then
7474
# Workaround for https://bugzilla.mindrot.org/show_bug.cgi?id=1988
7575
if ! [ -S $controlpath ]; then
7676
# shellcheck disable=SC2090 # We don't need the quote/backslashes respected
77-
( cd "$TMPDIR" && ssh -f -p $port $opts -o BatchMode=yes "$host" -- /bin/true 1>/dev/null 2>&1 || true )
77+
( cd "$TMPDIR" && ssh -f $opts -p $port -o BatchMode=yes "$host" -- /bin/true 1>/dev/null 2>&1 || true )
7878
fi
7979
fi
8080

@@ -83,4 +83,4 @@ $GHE_VERBOSE_SSH && set -x
8383

8484
# Exec ssh command with modified host / port args and add nice to command.
8585
# shellcheck disable=SC2090 # We don't need the quote/backslashes respected
86-
exec ssh -p $port $opts -o BatchMode=yes "$host" -- $GHE_NICE $GHE_IONICE "$@"
86+
exec ssh $opts -p $port -o BatchMode=yes "$host" -- $GHE_NICE $GHE_IONICE "$@"

0 commit comments

Comments
 (0)