LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   SSH tunnel? (https://www.linuxquestions.org/questions/linux-networking-3/ssh-tunnel-17839/)

tarballedtux 04-05-2002 09:06 PM

SSH tunnel?
 
I want to create an SSH tunnel to another host. I am almost sure I can make a SSH session out, but I haven't tried it yet. What I want to know is how would I make a SSH tunnel to another computer in order to transport HTTP over it.

correct if this command is correct to create an SSH tunnel to host FORD that has a local port listening on 3000

ssh -L 3000:FORD:22

Also would this only allow me to communicate with host FORD or would it forward to any webserver I needed. I know this may be a little confusing so please help if you can.

bbenz3 04-08-2002 09:24 PM

i can't exactly help you but I am looking to do something similar soon. I was wondering why you wanted to do an SSH tunnel instead of something tunneled everything. Now I am not sure about most of this tunneling stuff yet so I am a bit confused on it all. If you know of any good places to look I would be greatly appreciated.

unSpawn 04-09-2002 06:57 AM

Re: SSH tunnel?
 
Quote:

Originally posted by tarballedtux
()correct if this command is correct to create an SSH tunnel to host FORD that has a local port listening on 3000

ssh -L 3000:FORD:22

Correct.

Quote:


Also would this only allow me to communicate with host FORD or would it forward to any webserver I needed.

Only FORD, cuz you have to tunnel to a specific address. Some examples here. Btw, you need to make sure Sshd runs on FORD and you have a valid account there.

*OT1, but another fine piece of work to achieve encrypted port fwd'ing, when both hosts aren't running ssh (but you got an account on both) is stunnel which uses SSL.
*OT2, if this really was about firewall piercing & proxying out to other servers you should rephrase your question :-]

HTH somehow.

tarballedtux 04-09-2002 03:52 PM

This about proxy penetration, I trying to see if it is possible to do. I am here to test the districts policies for the internet connection. and ssh tunneling seems easy to do even for the slightly intelligent.


All times are GMT -5. The time now is 04:44 PM.