Categories
Linux Tutorial

Convert a pem file into a rsa private key

When you build a server in AWS one of the last steps is to either acknowledge that you have access to an existing pem file, or to create a new one to use when authenticating to your ec2 server. If you want to convert that file into an rsa key that you can use in […]

Categories
CentOS Linux

Linux Server won’t restart

Not too long ago I ran into a problem where a server with systemd would not shutdown or reboot through normal means. When executing  sudo shutdown -r now I would get a weird message back as output: Failed to start reboot.target: Connection timed out See system logs and ‘systemctl status reboot.target’ for details. Failed to open /dev/initctl: […]

Categories
CentOS Linux Ubuntu

sudo bang bang

So a day or two ago a co-worker mentioned that you can do  sudo !! to execute the last command in your history as root. I had never heard of such a thing! My life has been changed forever! Here I’ve been hitting the back arrow like a peasant just to put  sudo in front of a previous command. […]