trzsz / trzsz-go

trzsz-go is the go version of trzsz, makes all terminals that support local shell to support trzsz ( trz / tsz ).
https://trzsz.github.io/go
MIT License
884 stars 53 forks source link

Support for mosh? #51

Closed markshep closed 3 months ago

markshep commented 6 months ago

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?

lonnywong commented 5 months ago

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

lonnywong commented 5 months ago

@markshep How about making another mosh with trzsz support and port forwarding?

Based on tssh:

lonnywong commented 4 months ago

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.

lonnywong commented 3 months ago

tssh --udp and tsshd are released.