Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for mosh? #51

Open
markshep opened this issue Apr 17, 2024 · 2 comments
Open

Support for mosh? #51

markshep opened this issue Apr 17, 2024 · 2 comments

Comments

@markshep
Copy link

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
Copy link
Member

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
Copy link
Member

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

Based on tssh:

  • Make a new tssh-server program to replace mosh-server.
  • Make tssh --udp to replace mosh ( Support enabling --udp by default in ssh configuration ).
  • tssh and tssh-server use the udp protocol to communicate like mosh.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants