For example, if I did an ssh -X to localhost and invoked Firefox, would that be enough to be considered safe browsing, like if done on some public wifi?
|
|
No, it will not help. All it does is set up an encrypted connection to your local machine, and from there, connects to the outside world exactly like it would have without the local ssh - you gain nothing, but performance is going to suffer (after all, ssh does encrypt and decrypt all the X11 messages that firefox and the X11 server pass back and forth). ssh forwarding is useful if you are on an untrusted network (e.g. a public wifi), but you have a server with a trustworthy internet connection available elsewhere (e.g. your home broadband). In this scenario, you would ssh into the server at home, forwarding all your traffic through this server. The communication between you and your home server is secured by ssh; from there, it is just as secure (or insecure) as it would be if you were browsing from home. To the server at the other end, it will look as if the traffic came directly from your home network. On a side note, X-forwarding firefox is a terrible way of doing this; firefox doesn't exactly play nice with X11 messages, basically assuming that it runs locally - I have never seen firefox perform well when running on a forwarded X display. A much better way is to just use ssh's dynamic port forwarding; for example, you can issue |
|||
|
|
AnswerNo, it is not useful. If your goal is to protect your data in transit over the WiFi connection, then an encrypted tunnel over your loopback interface does not serve that goal. Research HintsThis is not a comprehensive list, but it will get you started as you search for a good solution for protecting your data in transit.
|
|||
|
|
|
For secure browsing you can also try Tor. see http://ansblog.com/2010/07/web-proxy-server-for-anonymous-browsing-tor-firefox-browser/ |
|||
|
|