Skip to content
/ awssh Public
forked from abustany/awssh

Simple "SSH to that EC2 instance" launcher to make life easier whean dealing with many machines

Notifications You must be signed in to change notification settings

rkoehn/awssh

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Makes SSHing to AWS instances less painful

Setup

Create a file named config.json in one of the standard configuration directories (eg. /etc/awssh for system stuff, ~/.config/awssh for user stuff), inspiring yourself from config.json.dist . The column names can be any of the toplevel properties of an object in an "instance_set" as decribed in here [1]. The special "tag:" prefix can be used to show one of the tags.

To setup some SSH keys, create a folder names "keys" next to the config.json file, and either copy or symlink there the SSH keys that are used to SSH to your instances. The filename should be [email protected], so for example, if your key is named "my_key" in amazon and the user to SSH as is "ec2-user", you'd name the file ec2-user@my_key.pem.

Use

Just put the script somewhere in your path and run it, optionally passing the AWS region to use as a parameter. You can also pass a command to run on the instance after all the options, like this:

awssh --region eu-west-1 -- tail -f /var/log/messages

Passing -- is mandatory, as it'll tell awssh to stop parsing options at this point of the command line.

TODO

  • Automatically download and setup private keys from AWS when possible.

[1] http://docs.aws.amazon.com/AWSRubySDK/latest/AWS/EC2/Client.html#describe_instances-instance_method

About

Simple "SSH to that EC2 instance" launcher to make life easier whean dealing with many machines

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 100.0%