eish

command module
v0.0.0-...-7aa8258 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

README

eish

SSH command wrapper with EC2 Instance Connect Endpoint.

Dependencies

Installation

go install github.com/gw31415/eish@latest

Usage

Same as standard ssh command.

Tips

If you want to push to the git repository in the EC2 instance, you can set the env variable GIT_SSH (or GIT_SSH_COMMAND) to eish.

export GIT_SSH=eish
git remote add ec2 ec2-user@i-1234567890example:/path/to/repo.git

Spec

Supported option types
  • [-1] [-2] [-v] ...: Single character options without its arguments (separated by space)
  • [-i value] [-b value] ... : Single character options with its arguments (separated by space)
  • [-2v] : Single character options without its arguments (not separated by space)
  • [-vi value] : Single character options with other options before which have no arguments (not separated by space)
  • [-ivalue] : Single character options with its arguments just after the option (not separated by space)
Supported options
  • Single character options without value
    • 1246AaCfGgKkMNnqsTtVvXxYy
  • Single character options with value
    • BbcDEeFIiJLlmOoPpRSWw
  • Options to call other functions without SSH connection
    • Q

TODO

  • logging and error message

License

Apache-2.0

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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