9th June 2018

Technical Resources

A collection of my Technical Resource documentation.

Latest Tech Articles

6th August 2019

Setting up an Nginx proxy for Kubernetes Dashboard

This is a quick Python script that I have written to create a no-auth Nginx proxy for the Kubernetes Dashboard which can be run on a docker host (Separate to the Kubernetes installation).

Github Repo: https://github.com/tjth-ltd/k8s-dashboard

12th June 2019

Converting Putty and Openssh Private Keys

This is something that I have had to do time and time again, to convert between openssh and putty private keys for Windows users who also dabble with linux servers.

All of these commands should be run on an Ubuntu server.

Before proceeding, ensure you have both openssh and putty-tools installed:

sudo apt-get install openssh-server putty-tools

Converting from Putty PPK to Openssh:

-O specifies the output type, -o specifies the output filename:

puttygen id_rsa.ppk -O private-openssh -o id_rsa

Converting Openssh private key to Putty PPK:

puttygen id_rsa -o id_rsa.ppk
12th June 2019

Remove all stopped Docker containers

A simple one-liner to remove all stopped Docker containers:

for container in $(sudo docker ps -a | grep "Exited" | awk {'print $1'}); do sudo docker rm $container;done