0

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

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

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

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

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

4

1 回答 1

0

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

windows:
  - "innerbox": 
    - ssh proxybox
    - ssh innerbox
于 2014-12-18T02:51:03.930 回答