Support for mosh?
markshep opened this issue · comments
I love this program - thanks for writing it!
I've successfully used trzsz-go with both SSH sessions and interactive AWS SSM Sessions but it doesn't work with mosh sessions. I know it's quite a different protocol as it uses UDP rather than TCP and has predictive modelling of the screen state so I guess it wouldn't be trivial, but is it even possible?
The mosh-server
rewrites the stdout output. It controls the output of the entire screen, causing the data transmitted by trzsz to be lost.
You might want to try https://github.com/trzsz/trzsz-ssh
@markshep How about making another mosh
with trzsz
support and port forwarding?
Based on tssh:
- Make a new
tssh-server
program to replacemosh-server
. - Make
tssh --udp
to replacemosh
( Support enabling--udp
by default in ssh configuration ). tssh
andtssh-server
use the udp protocol to communicate likemosh
.
Now, tssh supports --udp
mode like mosh
. The tsshd works like mosh-server
.
Please check https://github.com/trzsz/trzsz-ssh/blob/main/README.en.md#udp-mode for more details.
tssh --udp
and tsshd are released.