2
I have instructions for setting up a proxy tunnel to a work computer behind a firewall. The setup is:
|
[home]--------[outside]-|-[inside]
|
The instructions are, from home:
- ssh -N -L 7000:inside:22 outside
- ssh -D 9999 -p 7000 localhost
- Setup a proxy for port 9999 on localhost
I should then be able to appear to the world as though I'm on [inside].
If I was on a mac or linux machine I assume I would do the first two steps in order at a terminal. In windows, I can't just open up an ssh terminal.
The putty tunnel configuration screen looks like this:
I have two questions:
- What would be the right settings for step 1?
- Is the 2nd step done in Putty as well, or from the shell connection in step 1?
Edit: This is what the main Putty screen looks like:
Localhost:7000
Thanks! Do I need to put anything in the "Destination" box for either step? Also, What do I put for hostname in step 2? See image added to question. Is it just
outside
again? – abalter – 2015-12-18T04:04:25.100@abalter, I've updated the answer to clarify – heavyd – 2015-12-18T04:07:29.113
Putty won't connect when I have it set as in image above: hostname=localhost, port=7000. Isn't that kind of like asking to log on to my own machine at port 7000? I'm not running an ssh server. – abalter – 2015-12-18T04:16:29.690
I just realized I wrote that wrong. The first step should have "Local" selected, not "Remote." I've updated the answer. This will open port
7000
on the local machine and forwarding it toinside:22
on the remote side of the tunnel – heavyd – 2015-12-18T04:27:35.407So does that take care of both steps at once? – abalter – 2015-12-18T04:38:28.170
No, you still need both. The first one opens a session to
outside
and the tunnel opens port7000
on the local machine. Any connections tolocalhost:7000
will then be forwarded toinside:22
, so you connect the second session tolocalhost:7000
and then setup the second, dynamic tunnel which you will use as the proxy. – heavyd – 2015-12-18T04:41:24.727Let us continue this discussion in chat.
– abalter – 2015-12-18T04:43:58.203