Create ssh hostname rules from your DigitalOcean servers with ease
dossh is a tool for which creates ssh
hostname rules from your DigitalOcean servers for easier connection. For example, if you have a droplet in DigitalOcean with hostname foo.com
, you will be able to connect to it with command ssh foo.com
. All you need is an API key with read access from https://cloud.digitalocean.com/settings/applications
. If you don’t want to memorize the API key every time you can also create a .profile
(or .bashrc
depending on your platform) function as so:
function dossh { PATH_TO_DOSSH YOUR_API_KEY; }
export -f dossh
For example, mine looks like this
function dossh { ~/Github/dossh/dossh e1aa1...; }
export -f dossh
After opening a new command line window you should then be able to call dossh
globally. Each time you call the program it will refresh your SSH hostname rules to match your current servers. You can then connect to your droplet with its hostname. For example, we can now login to our foo.com
server with simply ssh foo.com
.
##Installation
Here you have two choices. The first one is to download a ready-made binary from Gobuild. Alternatively you can build the source by yourself.
To build the source you need to git clone https://github.com/9uuso/dossh
and then go build
. For this to work you have to have Go installed on your system.
##What operating systems does it support?
MacOSX, at least. And all other operating systems which have ssh config file located at ~/.ssh
should work as well.
##Why you made this?
I personally manage a bunch of DO servers and all of them are located behind a proxy server. With this awesome tool of mine, I’m able to connect to the servers with ease.
##License
MIT
by: Juuso HaavistoSeptember 27, 2014Visit site
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
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.
Sign up for Infrastructure as a Newsletter.
Working on improving health and education, reducing inequality, and spurring economic growth? We'd like to help.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.