Before doing this please make sure that you have permission to do this on all of the machines involved. Just because you can actually do it doesn't mean you are allowed to!OK, you've got a system sitting at home and you want to access it over SSH while your out on the road? You can use reverse SSH to achieve this. We will assume the following:
- The home system is called A
- On the home machine (called A) is the user called Auser
- There is some middle system you can SSH to (perhaps a web server?), this is called B
- The machine called B has the user Buser
- Your laptop your taking on the road is called C
So from machine A we will do the following:
That will connect you to the middle computer. When you want to connect to your home machine (called A), just do this from your laptop (machine C):
You are now connected! You may want to write some sort of script to reconnect your home machine should it go down. You can use any number, it doesn't have to be 10002

P.S.
If your connection keeps dropping, try the following:
I have a script that I run from my home system, the one I want to access when I'm on the road, it looks something like this: