No description
Find a file
2026-02-05 09:41:29 +00:00
aws-icon.ico Added dagster port mapping and icon to windows app 2025-12-24 01:03:55 +00:00
config.md Initial version 2025-10-01 15:41:42 +01:00
config.yaml Added config for Liberty CLA POC EC2 2026-02-05 09:41:29 +00:00
connect.go Added target ip/host to mapped ports config. 2026-01-06 11:58:56 +00:00
go.mod Added login 2025-10-08 12:54:32 +01:00
go.sum Updated dependencies 2025-10-03 09:48:36 +01:00
README.md Initial version 2025-10-01 15:41:42 +01:00
rsrc_windows_amd64.syso Added dagster port mapping and icon to windows app 2025-12-24 01:03:55 +00:00
secrets.go Initial version 2025-10-01 15:41:42 +01:00
secrets.yaml Added config for Liberty CLA POC EC2 2026-02-05 09:41:29 +00:00

AWS EC2 SSH Connect

This program provides a streamlined way to connect to AWS EC2 instances via SSH, using a configuration-driven approach for automation and flexibility.

Features

  • Connects to AWS EC2 instances using SSH
  • Supports multiple server configurations via YAML
  • Automates command execution upon connection
  • Manages SSH key files for secure access

Usage

connect [options]

Options

  • -c, --config <string>
    Location of configuration YAML file.

  • -e, --exec <string>
    Command to execute upon connection. If not provided, you will be prompted if multiple commands are available.

  • -i, --ignore-cmd
    Ignore command and connect only.

  • -k, --keys <string>
    Folder containing SSH key files.

  • -s, --server <string>
    Server label to use from configuration. If not provided, you will be prompted if multiple servers are available.

Examples

connect -c ./config.yaml -k ./keys -s my-server -e "uptime"

Connects to "my-server" as defined in ./config.yaml, and loading the key from ./keys and executes the "uptime" command as defined in the Yaml configuration

Configuration

See the config.md for configuration file description.

Secrets file

The secrets file should contain the key values encrypted by the app. You can do this using:

connect --encrypt ./secrets_plain.yaml > secrets.yaml

Example source (plain):

Server1: -----BEGIN RSA PRIVATE KEY----- <the actual plain key> -----END RSA PRIVATE KEY-----

Output (encrypted):

Server1: <long encrypted value>