简化ec2 ssh'ing
ssh2的Python项目详细描述
ssh2是一个交互式命令行工具,它允许您快速ssh 到一个ec2实例。您可以从正在运行的服务器列表中选择 你的帐户。
用法
$ ssh2 1
$ ssh2 -h Usage: ssh2 [options] [server_number] server_number: a numeric value corresponding to the server number e.g.: 'ssh2 1' will ssh into the 1st server in the list. Options: -h, --help show this help message and exit -x, --bust-cache refetch servers list from AWS -u USER, --user=USER provide user (default: ubuntu) -i IDENTITY, --identity=IDENTITY provide identity file -p PROFILE, --profile=PROFILE provide AWS profile --ip=IP connect using IP instead of DNS
要求
- AWS CLI
- Python
安装
git clone https://github.com/soheil/ssh2.git cd ssh2 ln -sf $(pwd)/ssh2 /usr/local/bin/