git push and fetch via ssh bouncing -


i have work machine can access sshing twice, once publicly visible ip address on company's network, , there sshing local machine on private network.

what easiest way git push , fetch , desktop when i'm off network?

one way set ssh tunnel. in 1 window on local machine:

ssh -l 2222:internal_work_address:22 public_gateway 

this sets listener on localhost port 2222 connects internal_work_address port 22. then, can modify git remote connect localhost:22.

alternately, can use sshuttle set transparently.


Comments