Managing SSH configurations, remote servers, SSH keys

Understanding the SSH config file, managing multiple SSH configurations, conventions and other settings.

Managing SSH configurations, remote servers, SSH keys
Image by Gerd Altmann from Pixabay

Managing multiple sets of servers, cloud platforms, private keys can be a pain point. Here's a look at a few approaches towards simplifying this.

SSHconfig

Keystores

💡
SSHConfGen https://github.com/pseudokool/sshconfgen is one solution that generates config files for SSH, for cloud platforms such as AWS, Azure, GCP, Linode etc. Currently, supports only AWS and runs of a cached API call (aws.json). Seeks to alleviate the pains when having to access (and maintain) a large number of VMs, possibly across multiple AWS accounts, and each time having to either do a history search or manually fetch connection info from the AWS console.