Skip to main content

cloudssh

Build Status codecov MIT licensed

EC2 SSH connections helper

An SSH connection helper for AWS

cloudssh allows you to quickly connect to EC2 instances using their names or instance IDs.

It will call the AWS SDK to find the instance public IP address and open a SSH connection in a subprocess.

Example:

EC2

EC2

You can connect to this instance with:

cssh dev

You can also use the auto-completion feature by building a local index of your AWS instances then calling cloudssh without any argument.

cssh --build_index
# The instances index has been stored in ~/.cloudssh/.

cssh
# Start typing an instance name and press [TAB] to auto complete.

Or search instances by name with:

cssh --build_index
# The instances index has been stored in ~/.cloudssh/.

cssh --search http
# Found "web-http-prod", connect? [Y/n]:

Or lookup an instance details:

cssh web-http-prod --info
# * Network
# Public ID: 123.***.***.***
# Private ID: 10.***.***.***
#
# * VPC/subnet
# VPC ID: vpc-******
# Subnet ID: subnet-******
#
# * Misc
# Instance name: web-http-prod
# Instance ID: i-******
# Instance type: t2.xlarge
# Launch date: 2019-10-12 15:44:36+00:00
#
# * Tags
#   product = web_cluster
#   environment = production
#   Name = web-http-prod

Example:

EC2

EC2

Installation and usage

pip3 install cloudssh
aws configure # To configure your AWS credentials

cssh myserver # Call the module followed by the name of one of your servers

Advanced configuration

You can optionally create a file ~/.cloudssh/cloudssh.cfg (see example).

Metadata

Release files for cloudssh 1.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for cloudssh 1.4
File Size Uploaded
cloudssh-1.4.tar.gz 7.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for cloudssh 1.4
File Interpreter ABI Platform
cloudssh-1.4-py2.py3-none-any.whl Python 3, Python 2 none any Details

Total release size: 15.2 kB

Release files / cloudssh-1.4.tar.gz

Download URL cloudssh-1.4.tar.gz
Size 7.2 kB
Tags Source
SHA-256 checksum
How to use checksums
d07e917784dc7f80c76eb82f512b8e2a1be52e4af32bdee64e8aeb115bbcc69d
BLAKE2b-256 checksum
How to use checksums
9a8fa737f2cb2c635527036cadee1433600cbb715bd313fe35a7fc752b48340e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.3

Release files / cloudssh-1.4-py2.py3-none-any.whl

Download URL cloudssh-1.4-py2.py3-none-any.whl
Size 8.1 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
e5d30a2a66bdac4b6c381bec80db2bf1d8fe12e624fe6dc79a5e2827d6ea01f6
BLAKE2b-256 checksum
How to use checksums
16cc41b7ce3ee1b1befae40f81ed576dd7f4db0e2457908c36d44b0211577040
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.3

Release history Release notifications | RSS feed

This release

1.4 This release

2 release files

1.3.1

2 release files

1.3

2 release files

1.2

2 release files

1.1

2 release files

1.0.1

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page