I'd like to run some startup command after login via mosh. With ssh, I'd do it as:
ssh server -t 'some startup command'
But, when I'm doing similar in mosh, I'm getting:
$ 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?).
How to achieve in mosh the similar behavior as in ssh?