HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Technical (http://www.howtoforge.com/forums/forumdisplay.php?f=8)
-   -   Need help with SSH tunnel (http://www.howtoforge.com/forums/showthread.php?t=54079)

bschultz 7th September 2011 23:46

Need help with SSH tunnel
 
I need to access a computer (Mac) at work over VNC, through another Mac at my house. I can connect with a PC using an SSH tunnel in Putty, but I can't figure out how to use a tunnel in Terminal (the Mac command line).

Here's what I've tried from the Mac terminal at home:

ssh -L 5905:192.168.2.169:5905 username@workdomain.com


Where...5905 is the local port

192.168.2.169:5905 is the IP address and port of the computer I'm trying to connect to with VNC

And username@workdomain.com is the address of the SSH server in the office I'm trying to tunnel through.

This didn't work. Can someone please give me a nudge in the right direction to make this work?

Thanks!

bschultz 8th September 2011 17:36

I figured it out...

ssh root@sshserverip -N -L 5902:192.168.2.118:5902


All times are GMT +2. The time now is 15:03.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.