SSH Tunel issue

Discussion in 'Mac OS X Lion (10.7)' started by A.Chakery, Apr 16, 2012.

  1. A.Chakery, Apr 16, 2012
    Last edited: Apr 16, 2012

    A.Chakery macrumors member

    Joined:
    Aug 27, 2011
    Location:
    Vienna, Austria
    #1
    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.
     
  2. A.Chakery thread starter macrumors member

    Joined:
    Aug 27, 2011
    Location:
    Vienna, Austria
  3. LowMach macrumors member

    Joined:
    May 7, 2008
    #3
    i use sshfs for these tunnels.

    what commands did you use to get it working?

     
  4. A.Chakery thread starter macrumors member

    Joined:
    Aug 27, 2011
    Location:
    Vienna, Austria
    #4
    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
     

Share This Page