Could not load host key: /etc/ssh/ssh_host_ed25519_key

While checking out my AWS instances /var/log/auth.log I came across a message repeatedly showing up:

Feb 03 18:04:11 edrc sshd[13041]: error: Could not load host key: /etc/ssh/ssh_host_ed25519_key

If you;re seeing this message, it means that the ed25519 HostKey setting is enabled in your sshd_config, but no host key was generated for it.

The fix is pretty simple.  Just run the following command:

$ ssh-keygen -A
ssh-keygen: generating new host keys: ED25519

Cisco 857 Router Config

I work from home most of the time, which means my ADSL really is a life line.  Without it i’d be making a 35 mile trek to the office every day.

The village i live in doesn’t have the greatest ADSL, but it’s not too bad either.  For most stuff it’s perfectly workable, however I have repeatedly had problems with home routers and their inability to work correctly for extended periods.  From a ton of reading i guess it’s down to memory leaks etc.  A simple power cycle fixes it, but that’s not a great help during a VoIP call when the line keeps breaking up.  Power cycles typically take 2-4 minutes to complete, which is often an issue, followed by a 1 min VPN reconnect….
Continue reading

Raspberry Pi SD Card Corruption

If you’ve played around with a Raspberry Pi ( much, then you may well have come across a small but quite annoying issue with your SD card becoming corrupt.

Now I can say why it happens, but the problem appears to only happen occasionally, and only with some card, but when it happens it can be really annoying!  I know we’re all supposed to back up after every keystroke, but one of the things about the RPi is that it’s a great hobby platform.  This means that quite often you;re just messing with things to get an idea working.  Often it’s hard to remember exactly what it was that you did to make it work, which makes a corrupt SD even more annoying!
Continue reading

Git for Deployment

Recently I have been using BitBucket to get to grips with Git. Git is a strange version control system, although maybe that’s because I am more used to SVN.

One thing I had read was that Git was great for remote deployment, because only the deltas are needed, making the whole update process far quicker. The added bonus is that you can always log in to the production server and change branch or revision quickly if you really do foul up!

BitBucket supports Git Hooks. These are essentially scripts which are run on certain events. In my particular case, what I wanted was for BitBucket to POST some data to a specific URL on my server on the event of a push.
Continue reading

Organising Photos on Linux

Over the years I’ve built up a huge collection of photos. Digital photo’s are great, you can take hundreds of pictures, and delete the ones you don’t like. The only problem seems to be that there isn’t a consistent naming scheme between devices! That’s a hassle, because one way or another you need to organise them to be able to find things later!
Continue reading

Oh My God It’s Cake!

Now i’m not a big cook, although i do really enjoy it.  I am however a big fan of Cake!

If you’re a fan of cake too, head over to and download yourself a copy of her new Kindle book, Oh My God It’s Cake.

If you’re reading this in Early August, it’s currently free to download from the Amazon Kindle store.  The cakes are family favorites, and are really easy to make!

Now, I just need find a book on reducing the size of my belly!!!!! 🙂

World Simplest HTML5 WYSIWYG Inline Editor

I am pretty new to web/JavaScript development, and often quickly reach for Google in order to find out how to do things.

Recently I needed to add the ability to do some pretty basic in-page editing of content. I didn’t want to use iFrame’s, i didn’t want a hugely featured editor, literally some pretty basic tools to be able to edit content, bold, italic, h1, h2 and so on.

After a fair bit of Googling, it seemed that there wasn’t a hope! all the plug in’s i found just seems unnecessarily complicated so, in a fit of self-importance, i decided i could do it myself. i’d end up with the editor i wanted, and code that i fully understood. Granted, it wasn’t likely to be an easy job, but hey, why would i code anything if there was an easier option?
Continue reading