Traditional SSL Certificate renewal for occurs every year and yet somehow that proves time and again to be just long enough to forget the process and lose confidence in conducting what should be a simple routine task. Here is a reminder of the step by step process of genenerating the CSR and combining the bundle into key and cert that we can use for an nginx reverse proxy, or whatever...

Continue reading...

CLI tmux guide

linux cli

tmux is a terminal multiplexer that allows you to create, manage, and navigate multiple terminal windows and panes within a single terminal session. It's particularly useful for working on remote servers or managing multiple tasks simultaneously in a single terminal window.

Here's my brief cheatsheet on how to use tmux:

Continue reading...

Sometimes you just need to serve a folder over http immediately!

Here are some quick one-liners to start a temporary webserver.

All of the following examples serve pwd, so make sure you cd ~/the-folder-you-wish-to-share first.

Use docker apache httpd:alpine

This will automatically gene...

Continue reading...

Initial Authentication

assume
aws sso login

Connecting to a linux AWS EC2 instance using SSM

aws ssm start-session --target  $INSTANCE_ID

Port forwarding MongoDB from remote linux AWS EC2 instance to local using SSM

aws ssm start-session --target $INSTANCE_ID --document-name AWS-StartPortF...

Continue reading...

Here are some reminders for securely generating SSH keys.

How to generate a modern ED25519 SSH key

To generate a good default ssh key in the default path ~/.ssh/id_ed25519 :


ssh-keygen -t ed25519 -a 100

To generate a good SSH key with specified output file path ( -f ) and descriptive c...

Continue reading...

Restic is a fast, secure, and efficient backup program that supports deduplication, encryption, and data integrity verification.

Using Restic:

  1. Installation: Install restic on your system, see restic installation

    apt install restic
  2. Initialization: Initialize a new repository for yo...

Continue reading...

xclip is a command-line utility for interacting with the clipboard in Linux systems. It allows you to copy data to the clipboard from the command line or retrieve data from the clipboard into the terminal.

Continue reading...

CLI Screen Guide

linux cli

The screen command in Linux allows users to manage multiple terminal sessions within a single window, facilitating remote access and session persistence.

Using Screen

  1. Start a new screen session:

    screen
  2. Detach from the current screen session: Press Ctrl + A, then Ctrl + D.

  3. ...

Continue reading...

While attempting to import an .sql file I experienced the following error Unknown collation: 'utf8mb4_unicode_520_ci'. It turns out the CentOS 7 repo only offers MariaDB version 5.5, meanwhile www.mariadb.org currently offers version 10.1 and also states that utf8mb4_unicode_520_ci is a support...

Continue reading...

SETUP PROCESS:

INITIAL USER:

adduser myuser
passwd myuser
gpasswd -a myuser wheel
su - myuser
mkdir .ssh
chmod 700 .ssh
vi .ssh/authorized_keys
chmod 600 .ssh/authorized_keys

SSH

Made the following modifications to /etc/ssh/sshd_config:

Port 2222
PermitRootLogin no
MaxAuthTries 6
MaxSe...

Continue reading...