SSH – disable StrictHostChecking as well as writing key to known_hosts

I often do a lot of work with temporary Vagrant, Docker, VMs, and I don’t really want those host keys clogging up my ~/.ssh/known_hosts file. So I just add the following alias to my shell “rc” file. In my case, I use zsh so it’s ~/.zshrc :

alias ssh-nocheck="ssh -o 'StrictHostKeyChecking no' -o 'UserKnownHostsFile /dev/null'"

Viola!  Now all I need to is to use something akin to:

ssh-nocheck -p 2222 root@192.168.2.138

K.Y.V.S.S.

XenPandaI have a a disorder when it comes to my home lab. I always have to try something else, whether it’s the latest technology or just something “I’ve wanted to try”. This leads to a lot of reinstalling servers and networks. This is not all bad as I learn best by doing.  This time I wanted to revamp my lab virtualization. Read more

Resizing my LVM based virtual disk

So I needed to upgrade my mail server but realized I only had 5GB of space left on the /opt partition and the upgrade complained about needing more than 5GB.  Not sure why I didn’t size the whole virtual disk a little bigger in the first place.  Also not sure why I didn’t set Zabbix to warn me when the disk space got that low.  Hindsight and all of that.  So following other’s recipes this is how I resized my LVM based virtual disk, and then subsequently resized the partitions within the VM.

Read more