Hat hierzu wer eine Idee wie ich das lösen kann?
Ask for Lokal Redirekt port if enter presses use this
$1 = 8888
Ask for Remote IP Adress if enter presses use this
$2 = 111.111.111.111
Ask for Remote port if enter presses use this
$3 = 3389
Ask for jump user if nothing entert use this:
$4 = root
Ask for jump HOST if nothing entert use this:
$5 = jump.server.de
Ask for jump Port if nothing entert use this:
$6 = 22
OPEN MSTSC whith local Port from $1
mstsc /v:127.0.0.1':$1'
ECHO the Command so i can see it in plani text
echo ssh -L $1:$2:$3 -N -f $J4@$5 -P$6
Now do the SSH Tunnel
ssh -L $1:$2:$3 -N -f $J4@$5 -P$6
Ask for Lokal Redirekt port if enter presses use this
$1 = 8888
Ask for Remote IP Adress if enter presses use this
$2 = 111.111.111.111
Ask for Remote port if enter presses use this
$3 = 3389
Ask for jump user if nothing entert use this:
$4 = root
Ask for jump HOST if nothing entert use this:
$5 = jump.server.de
Ask for jump Port if nothing entert use this:
$6 = 22
OPEN MSTSC whith local Port from $1
mstsc /v:127.0.0.1':$1'
ECHO the Command so i can see it in plani text
echo ssh -L $1:$2:$3 -N -f $J4@$5 -P$6
Now do the SSH Tunnel
ssh -L $1:$2:$3 -N -f $J4@$5 -P$6