我想通过 登录后运行一些启动命令mosh。对于ssh,我会这样做:
ssh server -t 'some startup command'
Run Code Online (Sandbox Code Playgroud)
但是,当我在 mosh 中做类似的事情时,我得到:
$ mosh elisa2 --ssh="ssh -t 'cat blah'"
Pseudo-terminal will not be allocated because stdin is not a terminal.
/usr/bin/mosh: Could not resolve hostname cat
ssh_exchange_identification: Connection closed by remote host
/usr/bin/mosh: Did not find remote IP address (is SSH ProxyCommand disabled?).
Run Code Online (Sandbox Code Playgroud)
如何在 mosh 中实现与 ssh 中类似的行为?