SSH Port Forward 22

Posted by j1199dm on Super User See other posts from Super User or by j1199dm
Published on 2011-10-22T18:27:04Z Indexed on 2011/11/20 1:59 UTC
Read the original article Hit count: 312

Filed under:
|
|

I'm trying to set up the following:

At work I want to create a local port that will forward to port 22 on my home server.

ssh -L 56879:home:22 username@home -p 443

right now I'm testing this on my two machines at home, my ubuntu server and the other my iMac.

iMac: 192.168.1.104 ubuntu: 192.168.1.103

iMac -> ssh -p 443 -L 56879:192.168.1.103:22 [email protected]

in my ~/.ssh/config on my iMac I have port set to 56879.

so when I do git pull remoteserver:/path/to/repo.git on my iMac git will use ssh client on my iMac and use port 56879 since setup in config which should forward to 22 on my ubuntu machine.

I keep getting connection refused? Any ideas?

© Super User or respective owner

Related posts about ssh

Related posts about openssh