Coder Social home page Coder Social logo

dossh's Introduction

dossh

dossh is a tool for which creates ssh hostname rules from your DigitalOcean servers. For example, if you have a droplet 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

To build the source you need to git clone https://github.com/toldjuuso/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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.