🎒 generate SSH aliases for your Droplets based on their hostnames.
do-ssh-alias is a small bash script that generates SSH aliases for your Droplets based on their hostnames. For example, if you have a Droplet named
shiny.example.com, this script will create aliases for
ssh shiny and
Let’s assume you have a Droplet named shiny-blog. Usually you would look up its IP address and then SSH into it like so:
What if, instead, you could simply run the following command?
This is where do-ssh-alias comes in. It creates SSH aliases for all your Droplets at once so you can easily SSH in, without having to worry about what user or hostname to use.
It is especially useful if your Droplets’ hostnames are FQDNs (e.g. shiny.example.com) that don’t point directly to the Droplets’ IP addresses. One example is using Cloudflare in front of your website, so your domain name resolves to a Cloudflare server instead of your Droplet.
For installation and usage instructions, please see: Have a lot of Droplets? Use do-ssh-alias for easier SSH access
Have you created an Integration, API Wrapper, Service, or other Tool that helps developers build on DigitalOcean? Help users find it by listing it in Community Tools.