Skip to main content

SSH into EC2 instances via tag name

Project description

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

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

# accompanying ec2-host script

# w/o arg: prints all active instances
% ec2-host

# w/ arg: prints host name of matching instance
% ec2-host django2


  • 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

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for ec2-ssh, version 1.2.1
Filename, size File type Python version Upload date Hashes
Filename, size ec2-ssh-1.2.1.tar.gz (3.8 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page