PuTTY Love

Cool things to do with Putty:

Private and Public Keys

If you do not use these yet, you should! Go to the PuTTY download page and download PuTTygen. Create your Public and Private key and put a password on the private key! Don’t want to enter you private key all the time? nor do I – read on!

Agent Authenticating

Go to the PuTTY download page and download Pageant and run it. It will appear in your system tray. Right click on it and “Add Key” and locate your putty private key (.ppk) file and open it. It will ask for the password to your SSH key (You did put a password on it, right?) put it in and now all future PuTTy sessions will ask Pageant for your SSH Key Password.

Auto Login

Do you use the same username all the time? yeah me too – In the PuTTY Config under Connection -> Data you can setup your Auto Login Username. Combine this with our agent authentication and you no longer have to enter any information when you log into your servers!

One key to rule them all

If you want to use your PuTTY SSH key on your servers to authenticate between them, you can do this too. Load your private key in PuTTYgen and under the Conversions menu choose “Export OpenSSH Key” save that to a file and then you can put that on your servers in your ~/.ssh/id_rsa file (assuming you are using RSA and not DSA)

Forwarding Agent Authentication

This means that you can use your private keys on the server without passwords too! putty will forward the decrypting password to the server when it asks for it, meaning you can SSH around in perfect safety without worrying about unprotected keys!

To set this up in your PuTTY config go to Connection ->  SSH -> Auth and tick the box marked “Allow agent forwarding”

Logging into a remote server that is behind another

So, you have some Linux servers that are behind a gateway or firewall box, but do not want to have to ssh into the gateway and then into each box separately? one (horrible) solution is port forwarding. The better solution is to have putty log into those boxes itself!

Follow the instructions above and get yourself some shiny SSH keys and some password less login loving. Then In the Putty Config go to Connection -> SSH and put into the Remote Command box:


If you have your SSH key set up and your “Allow Agent Forwarding” box ticked, you should now be presented with your server that is living behind the gateway/firewall.

Shouts go out to Billy @ http://autodeist.com/ for showing me the way with all of this stuff!

JJism – The New Religion

JJism – The New Religion
Sick and Tired of Religion Being Forced done your Throat – Try This

The 10 Commandments of JJism

  1. Thout shall not kill people – This is bad!
  2. Thout shall not piss anyone off – Thou wouldn’t like to be pissed off by some dickhead so don’t be a dickhead yourself.
  3. Thout shall be nice to everyone and they will be nice to thou.
  4. Thout shall not fuck thou best friends girlfriend or boyfriend – this is very bad!
  5. Thout shall buy rounds for others and they shall buy for you. If you don’t drink thou still gotta buy and they shall buy you a coke or something non alcohilic.
  6. If thout eats meat then thou shall eat meat, if thou don’t eat meat then though shall not eat meat.
  7. Thout shall not complain about violent games/TV programs. They are only games/TV programs for fucks sake!
  8. Thout shall not get grumpy once a month if thou is female.
  9. Thout shall find another religion is thout doesn’t like this one
  10. Thout shall SUBMIT so something when thout figures out what thou should be SUBMITting to.

The main goal of JJism is to live your life following most of the commonsense rules that your society provides. These include not speeding in your car, not killing people and not fucking your best friends girlfriend not matter how drunk she was.

Another Lazy Weekend

So here I am, chilling out – thinking how to make wordpress behave nicely with a software load balancing reverse proxy, particularly Varnish Cache. Why you may ask – well I need to get the best performance I can out of my shiny new web setup  at work and Varnish Cache by default does not cache anything that has a cookie.

There must be a way to put at least the front end wordpress stuff on a diet!