eb ssh -n 1
将连接到实例列表中当前选定的 env 和实例 1。
一旦外壳打开,是否可以以某种方式执行命令?我正在使用 itermocil 并想自动执行尾巴 -
现在我的配置看起来像这样:
windows:
- name: general
root: ~/Documents/LocalProjects/project
layout: tiled
panes:
- commands:
- cd web
- eb ssh -n 1
- commands:
- cd worker
- eb ssh -n 1
似乎可以使用
较新版本的 eb cli
➜ eb --version
EB CLI 3.10.2 (Python 2.7.1)
➜ eb ssh --command "pwd"
INFO: Running ssh -i /Users/xxx/.ssh/xxx ec2-user@0.1.2.3 pwd
/home/ec2-user
http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/eb3-ssh.html