BigComputeLabs
BigComputeLabs copied to clipboard
ssh -J not always available
you may want refer the users using WIndows Bash to another solution: creating a config file with the proxy settings.
` root@mymachine:/mnt/c/workspace/BigComputeLabs# cat ~/.ssh/config Host ccjumpbox HostName adminjb.westeurope.cloudapp.azure.com User cycleadmin ForwardAgent yes
Host ccserver Hostname cycleserver User cycleadmin ProxyCommand ssh ccjumpbox -W %h:%p 2>/dev/null `
and then ssh cycleserver -i ~/.ssh/id_rsa
I'm using this:
ssh -i ~/.ssh/id_rsa -Ao ProxyCommand="ssh -i ~/.ssh/id_rsa -W %h:%p -p 22 [email protected]" -p 22 cycleadmin@cycleserver