Tool by DigitalOcean

๐ŸŽ’ 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, this script will create aliases for ssh shiny and ssh

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:

ssh username@

What if, instead, you could simply run the following command?

ssh shiny-blog

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. 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

You rated this helpful.
You reported this tool.
Was this helpful?
Report an issue