EC2 SSH connections helper
Project description
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
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
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).
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file cloudssh-1.4.tar.gz.
File metadata
- Download URL: cloudssh-1.4.tar.gz
- Upload date:
- Size: 7.2 kB
- Tags: Source
- Uploaded using 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
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d07e917784dc7f80c76eb82f512b8e2a1be52e4af32bdee64e8aeb115bbcc69d
|
|
| MD5 |
0639e8671a7c15b6f090ba6abf7aa242
|
|
| BLAKE2b-256 |
9a8fa737f2cb2c635527036cadee1433600cbb715bd313fe35a7fc752b48340e
|
File details
Details for the file cloudssh-1.4-py2.py3-none-any.whl.
File metadata
- Download URL: cloudssh-1.4-py2.py3-none-any.whl
- Upload date:
- Size: 8.1 kB
- Tags: Python 2, Python 3
- Uploaded using 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
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e5d30a2a66bdac4b6c381bec80db2bf1d8fe12e624fe6dc79a5e2827d6ea01f6
|
|
| MD5 |
b58ad203c92567e2cc19dcce1ea67f94
|
|
| BLAKE2b-256 |
16cc41b7ce3ee1b1befae40f81ed576dd7f4db0e2457908c36d44b0211577040
|