login-taro

command module
v0.0.0-...-1c81862 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2020 License: MIT Imports: 8 Imported by: 0

README

login-taro

login-taro generates commandline snipets for connecting to AWS EC2 instance with ssh.

install

go get -u github.com/cm-kazup0n/login-taro

usage

login-taro --region NAME_OF_REGION

output

<Value of Name tag> | <ssh command>

Run with Peco

With peco, output can be filtered interactively, and filtered output can be eval like below.

bash/zsh
`login-taro --region ap-northeast-1 | peco`
fish
eval(login-taro --region ap-northeast-1 | peco)

example

$login-taro --region ap-northeast-1
windows | ssh -o ProxyCommand='ssh -i ~/.ssh/id-rsa.pem -W %h:%p ec2-user@ec2-XX-XX-XX-XX.ap-northeast-1.compute.amazonaws.com' -i ~/.ssh/id-rsa.pem ec2-user@ip-YY-YY-YY-YY.ap-northeast-1.compute.internal
bastion | ssh -i ~/.ssh/id-rsa.pem ec2-user@ec2-XX-XX-XX-XX.ap-northeast-1.compute.amazonaws.com

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