小编syg*_*ygi的帖子

在 mosh 中运行启动命令

我想通过 登录后运行一些启动命令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 中类似的行为?

ssh mosh

5
推荐指数
1
解决办法
2554
查看次数

标签 统计

mosh ×1

ssh ×1