Skip to content

login-taro generates a commandline snipet to connect to AWS EC2 instance with ssh.

License

Notifications You must be signed in to change notification settings

kazup0n/login-taro

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

login-taro generates a commandline snipet to connect to AWS EC2 instance with ssh.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages