do-ssh-alias
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 shiny.example.com, this script will create aliases for ssh shiny and ssh shiny.example.com.

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@1.2.3.4

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

by: Kamal Nasser May 20, 2020 Visit Site
You rated this helpful.
You reported this tool.
Was this helpful?
Report an issue

0 Comments