With ssh, I can do something like the following:
ssh user@host -t /path/to/some/shell
How can I automatically launch a shell on the server with mosh
?
I have tried with
mosh user@host -ssh /path/to/some/shell
and with:
mosh user@host -ssh "ssh -t /path/to/some/shell"
with no luck. Is this at all possible?
ssh -t machine@domain 'export STARTUP_OPTION="A"; exec /path/to/zsh'
but withmosh
(see this Q&A for more context) – Amelio Vazquez-Reina Oct 08 '15 at 18:20mosh user@host -- "export LC_OPTION=A; /path/to/some/shell"
without luck. – Amelio Vazquez-Reina Oct 08 '15 at 18:21