https://github.com/arranf/ssh-me-in
A command line tool for adding rules to EC2 security groups to allow SSH tunnelling from your current IP address
https://github.com/arranf/ssh-me-in
Last synced: 3 months ago
JSON representation
A command line tool for adding rules to EC2 security groups to allow SSH tunnelling from your current IP address
- Host: GitHub
- URL: https://github.com/arranf/ssh-me-in
- Owner: arranf
- Created: 2020-03-01T01:48:15.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-06-21T22:16:18.000Z (almost 3 years ago)
- Last Synced: 2025-10-19T19:15:48.668Z (8 months ago)
- Language: Rust
- Homepage:
- Size: 206 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ssh-me-in
`ssh-me-in` is a command line utility to add rules to one or more AWS EC2 security groups which allow you to SSH in. This can be useful for remote workers with a dynamic IP address who regularly need to SSH into EC2 instances.
## Installation
The easiest way to install `ssh-me-in` is via cargo.
To do this you'll need Rust 1.4.1 or later installed, as well as `libtoolize` 1.4.2 or later, m4, and automake.
```
# Follow the instructions at https://rustup.rs/
# then
rustup update stable
sudo apt-get install libtool m4 automake
cargo install ssh-me-in
```
## Configuration
This section covers primarily non-command line configuration, for a list of all command line configuration please use `ssh-me-in --help`.
By default `ssh-me-in` will use authenticate using AWS CLI credentials and the region specified in the`AWS_DEFAULT_REGION` or `AWS_REGION` environment variable if set. If the region is not specified in one of those environment variables it will fall back to the region in your config. Additionally, the region can be specified (overriding all other sources of config) via the command line `--region` argument.
To specify the security groups to add your IP address to you must provide a file with a security group id on each line. The default location this file is expected to be at is `$HOME/.ssh-me-in`, but an alternative config location can be specified using the `--config` option.
### Example config file
```
sg-d9e3fgad
sg-b02184cc
```