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!
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.
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
Sick and Tired of Religion Being Forced done your Throat – Try This
The 10 Commandments of JJism
- Thout shall not kill people – This is bad!
- Thout shall not piss anyone off – Thou wouldn’t like to be pissed off by some dickhead so don’t be a dickhead yourself.
- Thout shall be nice to everyone and they will be nice to thou.
- Thout shall not fuck thou best friends girlfriend or boyfriend – this is very bad!
- 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.
- If thout eats meat then thou shall eat meat, if thou don’t eat meat then though shall not eat meat.
- Thout shall not complain about violent games/TV programs. They are only games/TV programs for fucks sake!
- Thout shall not get grumpy once a month if thou is female.
- Thout shall find another religion is thout doesn’t like this one
- 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.
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!
Yummy rainbow cake, how awesome does this look!
So I have finally gone and done it – I have put WordPress on my website in an attempt to have some not so static content.
Let’s see how this goes