npm.io
1.0.0 • Published 10 years ago

@tomasperezv/cloudify

Licence
MIT
Version
1.0.0
Deps
0
Vulns
0
Weekly
0
Stars
1

cloudify

SSH connection manager

Configuration

Create a .cloudify.json file in your $HOME folder with a structure similar to config-example.json.

For example:

{
  "username": "test",
  "hosts":
  [
    {
      "id": "web",
      "name": "web-main",
      "domain": "0x101.com"
    }
  ],
  "jumphost": {
      "name": "jump1",
      "domain": "0x101.com"
  }
}

The previous example is defining the configuration for a host web-main.0x101.com which can be referenced directly by its id web. You can add multiple hosts on the hosts section.

List available hosts

$ cloudify list
Connection to a host
$ cloudify [id]

It will run ssh -A hostname to the host defined in cloudify.json by its id, for example for the file defined in the Configuration section you might run spcloudify web.

Connection to a host via a jumphost

The jumphosts are defined in the jumphost section, one they are defined you can use them directly in order to jump to any host by id.

$ cloudify jump a

Keywords