I want to access my other computer (mac osx) which on the other place. The simples solution is maybe like using teamviewer and logmein, but in this case i want to remote using command line /terminal. The problem teamviewer and logmein don't support terminal session. The remote computer (the computer that i want to connect to) is using dynamic IP and i don't have access to the router connected to that computer.

I got some resource , that i can use dynamic dns services like dynu,no-ip etc, but most of these services need me to alter some setting in the router (for example doing port forwarding etc). The fact i don't have access to the router. Or am i missing something ?

Any solution ?

  • 1
    You should consider a reverse tunnel with ssh. Dec 5, 2015 at 18:39
  • I agree with Marius, your only solution is for the computer in question to call out to another machine and then you meet in the middle. If reverse SSH won't work back to your own machine, figure out how to get a third server and connect to that. Sorry, I don't have specific software recommendations. You might have to cobble bits together. I'm imagining a listener that connects two ends of two streams, like an old fashioned telephone operator. Dec 5, 2015 at 19:24
  • Thanks Andrew and Marius. This is a good start , i will google for 'reverse ssh' and be back with the result. Thanks a lot guyz. Btw if anyone got other advices , pls share with me here.
    – andio
    Dec 6, 2015 at 12:10

1 Answer 1


If you want to connect you have 2 main options:

  1. Use your own server to get around NAT, for this you would use reverse SSH tunneling, either direct to your machine if you are not behind NAT, or to a midpoint like in the tutorial linked if you are also behind NAT.

  2. Using a service like ngrok to give you a publicly accessible address for connecting to

  • Well, I guess, to be fair, I should ask you, too:   Are you affiliated with this ngrok service?  (This is the second time this month you have promoted it.)  If you are affiliated, you must say so. Sep 28, 2017 at 19:21
  • 1
    I am not, although if they wish to start paying me I wouldn't say no :p (although I would disclose if I was). If I found a service I thought did the same thing better I would recommend them instead.
    – jrtapsell
    Sep 28, 2017 at 19:24

Not the answer you're looking for? Browse other questions tagged or ask your own question.