Coder Social home page Coder Social logo

awssh's Introduction

AWSSH Config

Perhaps you've encountered this because you're sick of checking the AWS console to find the public DNS of the particular machine you're working with. Perhaps it's because you work with dozens or hundreds of machines on AWS and simply can't keep track of them. Or perhaps it's out of shame from remembering the actual AWS-provided name for your instances.

It's the future, and we can use ssh config. So, where's my flying car?

Installation

You'll need python's setuptools:

# On Linux:
sudo apt-get install python-setuptools
# Or, alternatively
sudo yum install python-setuptools
# On Mac
sudo port install py-setuptools

With that installed, you're ready to rock-and-or-roll!

sudo python ./setup.py install

Configuration

This package uses boto, which checks for a configuration file ~/.boto. You can add your access ID and secret key to that file such:

[Credentials]
aws_access_key_id = <your id here>
aws_secret_access_key = <you get the picture>

If a remote instance uses keypair production, then this package assumes that your keyfile resides locally at ~/.ssh/production.

Running

# Easy-peasy
awssh-config

What it is and does

A quick way to get a list of all your instances by name, and automatically set up your ~/.ssh/config to enable you to log into your EC2 instances by name. A few things to keep in mind:

  1. It will not clobber information in existing ssh config
  2. Be that as it may, it does not preserve order
  3. It does preserves comments
  4. Saves a backup copy at ~/.ssh/config.bak
  5. Assumes key name production lives at ~/.ssh/production
  6. It is interruptable without corrupting ~/.ssh/config

Roadmap

  1. Support for multiple AWS accounts
  2. Read an optional 'User' tag to designate the username for each machine

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.