Mosh 到特定的远程 shell

Ame*_*ina 4 ssh mosh

使用 ssh,我可以执行以下操作:

ssh user@host -t /path/to/some/shell
Run Code Online (Sandbox Code Playgroud)

如何使用 自动在服务器上启动 shell mosh

我试过

mosh user@host -ssh /path/to/some/shell
Run Code Online (Sandbox Code Playgroud)

与:

mosh user@host -ssh "ssh -t /path/to/some/shell"
Run Code Online (Sandbox Code Playgroud)

没有运气。这是可能吗?

cuo*_*glm 6

尝试:

mosh user@host -- /path/to/some/shell
Run Code Online (Sandbox Code Playgroud)

一般形式为:

mosh [options] -- user@host [command]
Run Code Online (Sandbox Code Playgroud)

如果你没有指定命令,mosh 默认会生成一个登录 shell。