ec2-ssh

command module
v1.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 13, 2022 License: MIT Imports: 10 Imported by: 0

README

ec2-ssh

Command-line tool to easily connect to Amazon EC2 instances via SSH. It uses fzf to select instances to connect to, and it can be configured with various flags such as the SSH user, Region to find instances and directory where SSH keys are stored.

Prerequisites

Install

go install github.com/umegbewe/ec2-ssh@latest

Usage

To use this tool, simply run the ec2-ssh command and follow the prompts to select the EC2 instance you want to connect to. By default, the tool will use the ubuntu user to connect, and it will look for SSH keys in the ~/.ssh directory. You can use the following options to customize the tool's behavior:

Usage:

    ec2-ssh [OPTIONS]

Options:

    -user: SSH user to login with. Default user is "ubuntu".

    -directory: The directory where SSH keys are stored. Default is "~/.ssh".

    -region: The region where the EC2 instances are located. Default is "us-east-1".

For example, to connect to an EC2 instance using the ec2-user user, SSH keys stored in the /home/ubuntu/keys directory and region us-west-2, you could use the following command:

ec2-ssh -user ec2-user -directory /home/ubuntu/keys -region us-west-2

License

This tool is released under the MIT License. See LICENSE for more information.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL