{"id":11,"date":"2007-03-13T08:04:16","date_gmt":"2007-03-13T16:04:16","guid":{"rendered":"http:\/\/www.blogs.abeazam.com\/dev\/?p=11"},"modified":"2007-03-13T08:04:16","modified_gmt":"2007-03-13T16:04:16","slug":"secure-email-via-ssh","status":"publish","type":"post","link":"http:\/\/www.blogs.abeazam.com\/dev\/2007\/03\/secure-email-via-ssh\/","title":{"rendered":"Secure Email via SSH"},"content":{"rendered":"<p>When I take my laptop out to a unknown wireless network I can never be sure how secure it is. Well after a little bit of a fiddle with ssh and a couple searches on Google I found a way to set up a simple proxy using my own personal server so long as it supported SSH.<\/p>\n<p>It is actually quite a simple principle. SSH will connect you to your server on an encrypted connection. Your server then forwards on your requests for you. What I will do is go through how to setup your mail client using a dynamic SSH tunnel.<\/p>\n<p>The first thing you want to do is to set up your mail client to use a proxy url: &#8220;localhost&#8221; on port &#8220;1081&#8221;. (you use that setting for anything you want to secure like messengers, browsers and any any application that will allow u to connect to the Internet via a proxy) Leave the rest of your settings as they are.<\/p>\n<p>The next thing u want to do is to setup the proxy with your server there are many FREE third party apps that will allow u to do this like <a href=\"http:\/\/www.chiark.greenend.org.uk\/~sgtatham\/putty\/\" title=\"PUTTY\">PUTTY<\/a>(windows) or <a href=\"http:\/\/projects.tynsoe.org\/en\/stm\/\">SSH Tunnel Manager<\/a>(OS X). If you are not familiar with a command line then i recommend you use a third party app as apposed to the command line. i will right another post on one of the apps soon. Since I got a mac I have really gotten into the terminal so I will also show you a nice and easy way do it with one shell command see bellow:<\/p>\n<p>ssh  -D 1081 yourUsername@yourDomain.co.uk<\/p>\n<p>Breack down:<\/p>\n<p>ssh &#8211; is the base for any ssh comunication<\/p>\n<p>-D &#8211; sets up the tunnel so that it will DYNAMICALLY forward on the ports as specified in the original applications.<\/p>\n<p>1081 &#8211; is the port the proxy listens to on your localhost you can change it as u see fit<\/p>\n<p>yourUsername@yourDomain.co.uk &#8211; this is where you specify your user-name to your site and your your server url.<\/p>\n<p>Then it prompts you for your for a password. Enter it and your done. Now as long as that terminal window stays open then your proxy connection will stay up and all your connection will run through it.<\/p>\n<p>Now if you are anything like me you will probably want to go on line to see how u can customize the connection and boy are there loads of things out there. 1 thing I thought I would mention just in-case \ud83d\ude09 if u need to end the connection due to the fact u set the proxy to run in the background in a terminal wind type &#8220;kill &#8221; and the connection id you find the connection id by typing &#8220;ps&#8221; in the command line that will list it. Take the id from there say it was 475 and type &#8220;kill 475&#8221; and the proxy connection is gone. This may only be relevant if you customize the ssh command I gave you.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>When I take my laptop out to a unknown wireless network I can never be sure how secure it is. Well after a little bit of a fiddle with ssh and a couple searches on Google I found a way to set up a simple proxy using my own personal server so long as it [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[19,47],"tags":[],"_links":{"self":[{"href":"http:\/\/www.blogs.abeazam.com\/dev\/wp-json\/wp\/v2\/posts\/11"}],"collection":[{"href":"http:\/\/www.blogs.abeazam.com\/dev\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.blogs.abeazam.com\/dev\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.blogs.abeazam.com\/dev\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.blogs.abeazam.com\/dev\/wp-json\/wp\/v2\/comments?post=11"}],"version-history":[{"count":0,"href":"http:\/\/www.blogs.abeazam.com\/dev\/wp-json\/wp\/v2\/posts\/11\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.blogs.abeazam.com\/dev\/wp-json\/wp\/v2\/media?parent=11"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.blogs.abeazam.com\/dev\/wp-json\/wp\/v2\/categories?post=11"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.blogs.abeazam.com\/dev\/wp-json\/wp\/v2\/tags?post=11"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}