I believe this is a fairly simple one, but on the face of things I am sure its not "wrong".
I am trying to ssh tunnel in from my linux machine into a OSx machine that has access to my VPN.
Setting up tunnel
hutber@hutber ~ $ ssh -L 3333:github.someprivateurl.net:22 firstname.lastname@example.org Password: Last login: Thu Jun 7 01:00:34 2018 from 192.168.1.3 hutber@Jamies-Mac ~ $ hutber@Jamies-Mac ~/www/jamie $ git clone ssh://email@example.com/POC05Mortgages/mortgages-ui.git Cloning into 'mortgages-ui'... remote: Counting objects: 63823, done. remote: Compressing objects: 100% (52/52), done. ^Cfatal: The remote end hung up unexpectedlyMiB | 8.44 MiB/s
^ is just to show that when ssh'd into the OSx I am able to clone within this machine.
Accessing the tunnel
hutber@hutber /var/www $ git clone ssh://firstname.lastname@example.org:3333/POC05Mortgages/mortgages-ui.git Cloning into 'mortgages-ui'...
The above clone on my linux machine will hang until the connection realises it doesn't have access and throws me out.
How can I clone the repo on my linux machine whilst ssh'd into OSx?
I'm not sure how helpful this is... But I am unable to reach the site I am trying to clone, so its obviously nothing to do with git:
hutber@Jamies-Mac ~/www/jamie $ ping github.someprivateurl.net PING github.someprivateurl.net (10.113.188.195): 56 data bytes Request timeout for icmp_seq 0 Request timeout for icmp_seq 1 ^Z + Stopped ping github.someprivateurl.net
hutber@hutber /var/www $ ping -p 3333 github.someprivateurl.net PATTERN: 0x3333 PING github.someprivateurl.net (188.8.131.52) 56(84) bytes of data. From 172.16.24.82 icmp_seq=1 Time to live exceeded From 172.16.24.82 icmp_seq=2 Time to live exceeded From 172.16.24.82 icmp_seq=3 Time to live exceeded From 172.16.24.82 icmp_seq=4 Time to live exceeded ^C --- github.someprivateurl.net ping statistics --- 4 packets transmitted, 0 received, +4 errors, 100% packet loss, time 3004ms