Automate SSH Key Rotation on Ubuntu with Ansible

Overview Changing your SSH keys is as important as changing your underpants daily, running this script on a frequent basis will ensure access to the servers are changed on a regular basis. Use Ansible to do ssh key rotation in your sleep! Test Bed Ansible control server running Ubuntu 18.04 LTS Test server running Ubuntu… Read more »

Setup SSH Keys for Linux Key Based Authentication

Generating RSA Keys 1. Create a folder called “.ssh” under the root folder (change ~ for the full path of the user if you are using a user account)

2. Change permissions on the “.ssh” folder to 700

3. Generate keys

You will be prompted for a location to save the keys… Read more »

Key-based SSH Login Authentication on Linux with Putty

This guide describes how to generate a private and public key pair to log into a Linux server over SSH using Putty. Using key based exchange allows you to disable the normal username and password authentication procedure which increases security and removes the ability to brute force logins to the server. Putty & Utilities First… Read more »