Skip to main content

SSH into EC2 instances via tag name

Project description

https://img.shields.io/pypi/v/ec2-ssh-yplan.svg https://travis-ci.org/YPlan/ec2-ssh.svg?branch=master

A pair of command line utilities for finding and SSH-ing into your Amazon EC2 instances by tag (such as ‘Name’).

Forked from Instagram original code by YPlan.

Installation

From pip:

pip install ec2-ssh-yplan

Usage

# ec2-ssh

% 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

# ec2-host

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

# w/ arg
% ec2-host backend
ec2-132-45-67-89.compute-1.amazonaws.com
ec2-132-45-67-90.compute-1.amazonaws.com

# w/ tag arg too
% ec2-host -t environment production
ec2-132-45-67-90.compute-1.amazonaws.com
ec2-111-45-67-90.compute-1.amazonaws.com

History

Pending

  • Next version release notes here

1.5.1 (2016-01-21)

  • Pip failed to receive wheel in version 1.5.0, re-uploading

1.5.0 (2016-01-21)

  • Now using boto3

1.4.0 (2016-01-07)

  • ec2-ssh rewritten in Python. As part of this, the automatic ‘pretty prompt’ has been removed.

1.3.0 (2016-01-06)

  • Forked by YPlan

  • Output from ec2-host is now in random order, allowing ec2-ssh to spread logins between similar instances

  • Python 3 compatibility

1.2.1 (2011-11-27)

  • Fix issue when ec2-host finds one offline instance with same name as an online instance

1.2 (2011-11-27)

  • Merged pull requests to add region and tag support

1.1.1 (2011-11-17)

  • Add line echoing host before establishing SSH connection

1.1 (2011-11-15)

  • override prompt (PS1) to show tag name

1.0 (2011-09-05)

  • initial release

Project details


Download files

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

Source Distribution

ec2-ssh-yplan-1.5.1.tar.gz (4.6 kB view details)

Uploaded Source

Built Distribution

ec2_ssh_yplan-1.5.1-py2.py3-none-any.whl (5.9 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file ec2-ssh-yplan-1.5.1.tar.gz.

File metadata

File hashes

Hashes for ec2-ssh-yplan-1.5.1.tar.gz
Algorithm Hash digest
SHA256 d6281f6d00b6375883dd2947715f8b5042fb0557e7546034ee64a614daf7d6bf
MD5 f4c73e142c5f522e0ea70d70ce5ec15a
BLAKE2b-256 c51f636c1f63e1f2f702c53acefb30dfea82238d33b8189ff6338f4eae22a87b

See more details on using hashes here.

File details

Details for the file ec2_ssh_yplan-1.5.1-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for ec2_ssh_yplan-1.5.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 c240d594f7854e1872e545756c898e06f8856d9a244c785f09dc13f9b0163e77
MD5 f6e0e47a6b8cfe9546c0a25465b41720
BLAKE2b-256 ff65ca24ec0d1debe1d462ae4b59cbd1a0ab4f60ca7d9ec1cf0f766a5c313b63

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page