Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

OK, so this is what I got, but it doesn't look right...

The set up is as follows:

My Mac is on a wireless network, presumably behind a firewall over which I have no administrator privileges. Further, said wireless network changes my internal IP address randomly at random times, so I do not know what my IP address is.

Note that localhost is a variable IP address.

I forward some port or the other to my DNS:

ssh -R 19999:localhost:22 sourceuser@remotehost

Connect to my remotehost from my machine:

ssh sourceuser@remotehost

And then connect to the port I forwarded:

ssh localhost -p 19999

[solved] Second question, there are a bunch of SSH clients for the iPhone. Which one should I use?

EDIT: Since jailbreak is not illegal, simply frowned upon by the Corporation, I've decided to go with that. I have a nice shell with OpenSSH and the works. Best of all, it's free and it does exactly what you expect.

share|improve this question
no one loves me? – mechko Jan 8 '10 at 4:41
What is your first question? You should explain what exact problem you're having. – anand.trex Jan 8 '10 at 5:50
it's not working, and even if it did, would this approach be safe. – mechko Jan 8 '10 at 7:03
up vote 1 down vote accepted

Why is localhost a variable IP? It should be something like or, and be rather constant.

I prefer iSSH for the iPhone, as it includes VNC capabilities as well.

Are you trying to tether your laptop to your iPhone?

share|improve this answer
Actually, if you jailbreak you get a proper full terminal with openssh. And apparently jailbreak is NOT illegal, so I'm fine with it, so that deals with that part of it. I am not sure what to do with the local host, etc, which is the main reason I am asking. The thing is, my laptop will be on a large wifi system and I will want to access it even when I'm NOT local. – mechko Jan 8 '10 at 23:45

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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