【问题标题】:Is it possible to ssh 2 levels deep in tmux (tmuxinator) init script?是否可以在 tmux (tmuxinator) 初始化脚本中 ssh 2 个级别?
【发布时间】:2014-12-18 10:51:03
【问题描述】:

为了到达我想通过 ssh 进入的盒子,我需要通过一个中间盒子。假设我的密钥已配置,因此我不需要输入密码,是否可以执行此类操作?

windows:
  - "innerbox": ssh proxybox; ssh innerbox

这种语法不起作用。我得到这个输出:

andersonbd1@localhost:~$ ssh proxybox; ssh innerbox
[andersonbd1@proxybox ~]$ 

它让我进入第一个盒子,但不是第二个。如果这在 tmuxinator 中是不可能的,但在普通的 tmux 中是可能的,我也会很感激这个答案。

【问题讨论】:

    标签: ssh tmux tmuxinator


    【解决方案1】:

    在这里找到答案: tmuxinator initialize pane with multiple commands

    windows:
      - "innerbox": 
        - ssh proxybox
        - ssh innerbox
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2022-08-14
      • 1970-01-01
      • 1970-01-01
      • 2015-02-17
      • 2014-09-29
      • 1970-01-01
      • 2020-11-20
      相关资源
      最近更新 更多