skip to navigation
skip to content

Not Logged In

ec2-ssh 1.2.1

SSH into EC2 instances via tag name

A simple command line utility, allowing you to SSH into you Amazon EC2 instances by their “Name” tag.

A few examples:

% ec2-ssh nginx2
# equivalent to
# ssh ubuntu@ec2-123-45-67-89.compute-1.amazonaws.com

% ec2-ssh root@appserver
% ec2-ssh deploy@nginx2 sudo restart nginx

# accompanying ec2-host script

# w/o arg: prints all active instances
% ec2-host
django1 ec2-123-45-67-89.compute-1.amazonaws.com
django2 ec2-132-45-67-89.compute-1.amazonaws.com
django3 ec2-231-45-67-89.compute-1.amazonaws.com

# w/ arg: prints host name of matching instance
% ec2-host django2
django2 ec2-132-45-67-89.compute-1.amazonaws.com

Changelog

  • 1.0 - initial release
  • 1.1 - override prompt (PS1) to show tag name
  • 1.1.1 - Add line echoing host before establishing SSH connection
  • 1.2 - Merged pull requests to add region and tag support
  • 1.2.1 - Fix issue when ec2-host finds one offline instance with same name as an online instance
 
File Type Py Version Uploaded on Size
ec2-ssh-1.2.1.tar.gz (md5) Source 2011-11-28 3KB
  • Downloads (All Versions):
  • 5 downloads in the last day
  • 67 downloads in the last week
  • 316 downloads in the last month