• Stars
    star
    112
  • Rank 312,240 (Top 7 %)
  • Language
    Go
  • Created over 10 years ago
  • Updated about 4 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Cloud enhanced SSH client replacement with host auto-completion

cloud-ssh

Cloud enhanced SSH client replacement with host auto-completion.

In times of digital clouds, servers come and go, and you barely remember its names and addresses. This tiny tool provide fuzzy search (yeah like SublimeText) for your instances list, based on tags, security groups and names.

Official site: https://buger.github.io/cloud-ssh/

Installation

Automatic installation. Just run following code in your terminal

  bash <(curl -# https://buger.github.io/cloud-ssh/install.sh)

Manual installation - download and unpack latest release: http://github.com/buger/cloud-ssh/releases

Examples

sh-3.2$ # Lets say i want connect to server called stage-matching
sh-3.2$ ./cloud-ssh leon@stama
Found config: /Users/buger/.ssh/cloud-ssh.yaml
Found clound instance:
Cloud: granify_ec2      Matched by: aws:autoscaling:groupName=stage-matching    Addr: ec2-50-200-40-200.compute-1.amazonaws.com

Welcome to Ubuntu 12.04 LTS (GNU/Linux 3.2.0-25-virtual x86_64)

If there are more then 1 server matching your query, it will ask you to choose one:

sh-3.2$ # I want to check one of my CouchBase servers
sh-3.2$ ./cloud-ssh ubuntu@couch
Found config: /Users/buger/.ssh/cloud-ssh.yaml
Found multiple instances:
1)  Cloud: granify_ec2  Matched by: Name=couchbase-02   Addr: ec2-50-200-40-201.compute-1.amazonaws.com
2)  Cloud: granify_ec2  Matched by: Name=couchbase-03   Addr: ec2-50-200-40-202.compute-1.amazonaws.com
3)  Cloud: granify_ec2  Matched by: Name=couchbase-04   Addr: ec2-50-200-40-203.compute-1.amazonaws.com
4)  Cloud: granify_ec2  Matched by: Name=couchbase-01   Addr: ec2-50-200-40-204.compute-1.amazonaws.com
5)  Cloud: granify_ec2  Matched by: Name=couchbase-05   Addr: ec2-50-200-40-205.compute-1.amazonaws.com
Choose instance: 1
Welcome to Ubuntu 12.04.4 LTS (GNU/Linux 3.2.0-58-virtual x86_64)

Nice, right? More over, cloud-ssh can act as full ssh replacement, since it just forward all calls to ssh command.

Configuration

By default it checks your environment for AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY environment variables. If you want advanced configuration you can create cloud-ssh.yaml in one of this directories: ./ (current), ~/.ssh/, /etc/

Note that you can define multiple clouds, per provider, if you have multi-datacenter setup or just different clients. Cloud name will be included into search term, so you can filter by it too!

Right now only 2 data cloud providers supported: Amazon EC2 and DigitalOcean.

Example configuration:

gran_ec2: # cloud name, used when searching
    provider: aws 
    region: us-east-1
    access_key: AAAAAAAAAAAAAAAAA
    secret_key: BBBBBBBBBBBBBBBBBBBBBBBBB
    default_user: ubuntu
gran_digital:
    provider: digital_ocean
    client_id: 111111111111111111
    api_key: 22222222222222222

Faq

Can it be drop-in replacement for SSH?

Totally yes! Actually it just SSH wrapper, so all SSH command options will work as before.

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Added some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

More Repositories

1

goreplay

GoReplay is an open-source tool for capturing and replaying live HTTP traffic into a test environment in order to continuously test your system with real data. It can be used to increase confidence in code deployments, configuration changes and infrastructure changes.
Go
18,622
star
2

jsonparser

One of the fastest alternative JSON parser for Go that does not require schema
Go
5,452
star
3

goterm

Advanced terminal output in Go
Go
967
star
4

chromus

Chromus - web music player, reincarnation of Last.fm free music player https://chrome.google.com/extensions/detail/bbncpldmanoknoahidbgmkgobgmhnafh
JavaScript
78
star
5

PointOut

PointOut
JavaScript
11
star
6

budget_allocation_ui

JavaScript
7
star
7

minus-javascript

Javascript API for Min.us
JavaScript
6
star
8

vk_contest

JavaScript
3
star
9

go2service

Python
3
star
10

oDesk-extension

JavaScript
3
star
11

email_reminder

JavaScript
3
star
12

fotodep_store

PHP
3
star
13

CPP-Labs

MIEE 2009
3
star
14

business_address_finder

Finds addresses and phones by company name. Thanks to Yandex Maps API.
Python
3
star
15

flick_faver

Flickr mashup
Python
2
star
16

video-player

Video player
ActionScript
2
star
17

ff_addon_template

JavaScript
2
star
18

cursor_logger

JavaScript
2
star
19

fotodep_fmagazine

PHP
2
star
20

instant_hits

2
star
21

gmail-news-reader

Use Gmail as news reader
JavaScript
2
star
22

minus-extension

Browser extension for Min.us
JavaScript
2
star
23

currency_viewer

http://habrahabr.ru/special/ostrovok/
JavaScript
2
star
24

capistrano-fast-deploy

Capistrano v3 addon for faster deploys
2
star
25

helpdesk

Android and iPhone reviews in 1 place
JavaScript
2
star
26

SimplyRead

JavaScript
2
star
27

appengine_starter_kit

Google App Engine project template
Python
2
star
28

rentfilter

Vertical search engine for apartments rent ads with fraud detection
Python
2
star
29

sidekiq-job-manager

Manage your Sidekiq jobs
Ruby
2
star
30

simplifyjson

https://simplifyjson.com
HTML
2
star
31

avtoadfilter

avtoadfilter
Python
1
star
32

donotforgettodo

Most simple todo project
Python
1
star
33

payoneer_account_stats

Payoneer account stats
JavaScript
1
star
34

video_scrobbler

Firefox extention
JavaScript
1
star
35

minus-firefox

JavaScript
1
star
36

text-editing-extension

1
star
37

enchanced_bookmarks

http://enchmarks.blogspot.com/
1
star
38

master-f

Сайт строительной фирмы Мастер-Ф
JavaScript
1
star
39

vida_parser

Vida.ru parser
Ruby
1
star
40

calendar_api

Callendar API
Ruby
1
star
41

music_string_parser

Parses given string, and returns music info (Artist, Album, Song, etc..)
1
star
42

Audio-Viz

CoffeeScript
1
star
43

Squzy

1
star
44

minus_chrome_app

1
star
45

jquery_select

1
star
46

vim_config

My vimrc config
1
star
47

datocms-Hugo-Portfolio-Website-demo

CSS
1
star
48

fontlovers

JavaScript
1
star
49

resume

JavaScript
1
star
50

dfmo

DFMO Group
Python
1
star
51

music_video_aggregator

Python
1
star
52

goreplay-docker

Docker image for goreplay
1
star