Over the last few weeks, Hak 5 has been covering proxies and the use of SSH. Today I set up my SSH server with a login used only for a socks proxy tunnel. The first step I took was to set-up keys for my main user login. ssh-keygen -t rsa -C “myhostname.info“ and then copied the private key to ~/.ssh/myserver and transferred the public key to my servers home folder with Filezilla into ~/.ssh/authorized_keys. Before logging out, I opened a new tab in my terminal and tried to login. ssh -i “~/.ssh/myserver” -p num email@example.com After entering my password for my key, I was able to login and access my server. The next step for me was to create a user with no permissions that I could use for proxy tunnels only. adduser –disabled-password –shell=/bin/false proxy This user is not allowed access to the shell, or login from the local system. I then added the folder .ssh to proxy’s home folder as root, generated a new set of keys for proxy and placed the id_rsa.pub file as authorized_keys in .ssh. After adding the public key, I performed chmod 0600 and chown proxy on authorized_keys. The next step was connecting using the new user and keys. The trick with this set-up is to use -N when connecting (no shell) as you will be disconnected immediately because the user proxy has no shell. ssh -ND 8090 -p num firstname.lastname@example.org After the initial connection, I opened Firefox and setup the proxy for socks, with 127.0.0.1 entered as the hostname and 8990 as the port, and opened whatsmyip.org and success. My IP was showing my servers address. While I would still like to have a VPN setup for UDP applications, I find a lot of places that block access to your VPN, so hosting my SSH server with port 443 is still the best setup I have found for my needs.
I’m sure there are a lot of posts about how awesome Udacity is, but here’s one more. I’ve already finished the CS101 (Python) course and have moved on to CS253 (Web Applications) and have enjoyed the whole process. One of the best things about Udacity is that you can access it anytime, and there are no time sensitive lectures or assignments. Something that I also appreciate is the homework. As of this hexamester, you don’t have strict deadlines, which means if I have a bad week, I can catch up the following week where I may have more time. Udacity is still in the early stages, but I want to see this stick around, and if I have to pay, it wouldn’t hurt my feelings for what I’m getting out of it.
Some of you may travel around, and you will probably need to access the internet. While I can use my phone for almost everything, I still use my laptop for ‘real’ work. I also have access to a FedEx Office with their LapNet station and a laptop with Lubuntu. I originally was using the AT&T WiFi, but the speed and reliability was awful. My solution, grab the LapNet files from the USB drive and launch it under wine. With one warning box and clicking next a few times, I was off and running. For any one out there who has been wondering about this option, I can verify it is possible. All you need to do is enable DHCP (default for most distros) and run the LapNetWizard.exe with wine. There will be a popup box about enabling DHCP, just click ‘OK’ and continue. Once its done setting up the network, it will ask to install the printers. The printers will not install correctly, so click ‘No’ and continue. Then insert your card and it will connect. I also launch an SSH session to proxy my Firefox traffic, but thats another story.
After talking with a fellow tech lover and learning programmer recently, I was pointed to a good write up about the hacker mind set and another page about getting started with programming. How to be a Hacker http://www.catb.org/~esr/faqs/hacker-howto.html How to be a Programmer http://samizdat.mines.edu/howto/HowToBeAProgrammer.html These should not be considered an end all solution and life style choice, but there is some very good information if your just getting your feet wet and want to have a better understanding of the culture and mind set of your soon to be peers.