Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

A.Chakery

macrumors member
Original poster
Aug 27, 2011
78
8
Vienna, Austria
Hello,

I need to create a ssh tunnel to my server, I used too many commands in terminal but no one of them worked ,

here is the commands that I used :

Code:
ssh -D 120 root@my-ip -p (myport)
ssh -N -P (myport)  root@my-ip -D 120

please note that 120 is the local port that I wanna use in my browsers.
and (myport) is my ssh port.

any help is really appreciated.
 
Last edited:
i use sshfs for these tunnels.

what commands did you use to get it working?

Hello,

I need to create a ssh tunnel to my server, I used too many commands in terminal but no one of them worked ,

here is the commands that I used :

Code:
ssh -D 120 root@my-ip -p (myport)
ssh -N -P (myport)  root@my-ip -D 120

please note that 120 is the local port that I wanna use in my browsers.
and (myport) is my ssh port.

any help is really appreciated.
 
to drive the traffic my own local port (120) , I used below command :

Code:
ssh -D 120 root@ip -p 22

-p => your server's ssh port
-D => your desired local port
root => your server's ssh username
ip => Your IP :D

Goodluck
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.