Commit 103aff1b authored by Dom Sekotill's avatar Dom Sekotill
Browse files

Support user names in the SSH 'forward' script

parent 354a2edb
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -21,7 +21,7 @@ Host gateway gateway.net.kodo.org.uk lw.kodo.org.uk
	CheckHostIP no

Host !1-gw1.net.kodo.org.uk *.net.kodo.org.uk 10.56.*
	ProxyCommand ~/.ssh/forward %r@%h %p ssh-port-user@1-gw1.net.kodo.org.uk
	ProxyCommand ~/.ssh/forward %r %h %p ssh-port-user@1-gw1.net.kodo.org.uk
	CheckHostIP no


+5 −3
Original line number Diff line number Diff line
@@ -2,10 +2,12 @@
has(){ type $1 >/dev/null 2>/dev/null; }

SSH_DIR=`dirname $0`
HOST=$1
PORT=$2
USER=$1
HOST=$2
PORT=$3
shift 3

set ssh ${SSH_CONFIG:+-F "$SSH_CONFIG"} -W $1:$2 $3
set ssh ${SSH_CONFIG:+-F "$SSH_CONFIG"} -W $USER@$HOST:$PORT "$@"

for PYTHON in python3.7 python3.6 python3.5 python3.4 python3.3 python3 \
	python2.7 python2 python