Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Community > MacNN Lounge > SSH Tunneling to secure HTTP connections

SSH Tunneling to secure HTTP connections
Thread Tools
Professional Poster
Join Date: Oct 2001
Status: Offline
Reply With Quote
Jul 8, 2005, 10:29 PM
 
Hi, using the campus network makes me feel paranoid that someone's sniffing all my traffic. There are several websites that I have to login to and my password is sent in the clear for them, so to secure these connections I'd like to use SSH tunneling. I already secure my SMTP using this method, however, in that case I connect to a specific port at a specific destination using this command:
Code:
ssh -N -p 22 -c 3des myuser@myremoteserver.com -L 10025/localhost/25
Could I just modify that to this to secure all my web connections:
Code:
sudo ssh -N -p 22 -c 3des myuser@myremoteserver.com -L 80/localhost/80
The thing is that I don't really have a strong grasp on what that command does. I believe the SMTP command that command tells it to login securely and to my remote server onto its ssh port, and then redirect traffic to localhost on port 10025 to the remote host's SMTP port.

Running the second command seems to work as expected, and web connections do work (except for some reason it requires me to type in my password, unlike the first, which is odd since I have 3des public/private keys on my local box and the remote machine, and because of that it doesn't ask for my password when I do SMTP tunneling).

Other than that, the second command for HTTP tunneling seems executes, but I don't know if it's actually working. If my interpretation of the SMTP command is correct, then it wouldn't make sense to forward traffic from my machine's request's to port 80 to the remote machine's port 80.


Essentially, am I doing it properly (probably not), and if not then how do I do it?


Edit: Or I might have to make a proxy with the -D option with ssh. I've tried doing this by following guides online by using this command:
Code:
/usr/bin/ssh -N -p 22 -c 3des -D 1080 myuser@myremoteserver &
And configuring my web browsers to use localhost:1080 as the proxy, but that didn't work, and I was unable to access any website.
(Last edited by itistoday; Jul 8, 2005 at 11:24 PM. )
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 06:19 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2