Linux

Install Ghost on an Arch VPS

April 29, 2016
Linux, Meta

I recently got myself a small VPS from Hetzner to play around with. Using their ‘rescue’ function you can mount different installer images in the virtual disc drive and install the system via VNC or web console. They provide an Arch installer too, so I chose that. I set up a very barebones system on a btrfs partition and with an nginx webserver. To me, Arch seemed like an interesting choice for a webserver and so I cloned my nginx config from my nas and began to go through all the directives again and tidy up all the configs in the process, making as much as possible a global directive inside the http { } block. ...

OpenSSH + OATH-TOTP

March 24, 2016
Linux, Openssh, Security

I dug a little further after my last post and stumbled upon this excellent blog post. It turns out that using the libpam-oath module for two-factor authentication is a lot easier than the challenge-response module and it works rather fabulously. I will document the steps I took here. Again, all credit goes to the author of that blog post above - I mainly followed his explanations and links. What we are going to do # We want to enable two-factor authentication when logging in via ssh. ...

OpenSSH + YubiKey HMAC-SHA1 challenge-response

March 23, 2016
Linux, Openssh, Security

First off: this does not work as I wanted it to work .. it has some interesting implications though. The idea # I am using a YubiKey NEO for various things. It holds my PGP keys in its secure element and has the YubiKey slots configured to use HMAC-SHA1 challenge response and static password. You can for example unlock your KeePass(X) database using OATH-HOTP or the challenge-response mechanism. The idea was to use the PAM module in its challenge-response mode for authentication during SSH logins. ...

Access Ghost via UNIX Socket

February 16, 2016
Systemd, Linux

Okay, so I set this thing up recently as my new landing page.

Using some scripts and templates from etherpad-lite, which I modified slightly, I now run this as a systemd service under a new user. (You can find the modified files at the end of this post.) However, somehow I can’t get ghost to listen properly on sockets yet.. or at least nginx gives me 502 errors when trying to connect .. I’ll resort to using localhost:port for now.

...