eb ssh -n 1
将连接到实例列表中当前选定的env和实例1。
一旦shell打开,它是否可能以某种方式执行命令? 我使用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
答案 0 :(得分:0)
似乎可以使用更新版本的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