Skip to content

CLI tool to easily connect to EC2 instances via SSH, selected with fzf.

License

Notifications You must be signed in to change notification settings

umegbewe/ec2-ssh

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

CLI tool to easily connect to EC2 instances via SSH, selected with fzf.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages