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

[feature request] Integrate mosh for persistent ssh session #27

Open
sreeniHari opened this issue Jan 6, 2025 · 2 comments
Open

[feature request] Integrate mosh for persistent ssh session #27

sreeniHari opened this issue Jan 6, 2025 · 2 comments

Comments

@sreeniHari
Copy link

@iximiuz Is it possible to integrate mosh to the ssh session ? i am using wezterm and i need to kill the terminal to restart after shell each time after ssh session timeout.

 λ ➜  labctl ssh xxxx
laborant@python-01:~$
@sreeniHari sreeniHari changed the title [feature request] Integrate moshy for persistent ssh session [feature request] Integrate mosh for persistent ssh session Jan 6, 2025
@sreeniHari
Copy link
Author

sreeniHari commented Jan 6, 2025

last time i had used this in termius.

SSH works over TCP, which means that if the network connection is interrupted, the session may be lost – that's where [Mosh](https://support.termius.com/hc/en-us/articles/4402049882137-Supported-SSH-Capabilities#h_01F7NQXD3ESVM1FYTH0ZYFSZX9) comes in handy

https://support.termius.com/hc/en-us/articles/4402049882137-Supported-SSH-Capabilities

@iximiuz
Copy link
Owner

iximiuz commented Jan 6, 2025

Hey @sreeniHari! If I understand correctly, mosh expects the SSH server address to be publicly available. In the labctl case, the playground's SSH server is actually not accessed directly, but instead, a WebSocket (hence, TCP)-powered proxy process is started to punch a tunnel to the playground (see https://github.com/iximiuz/wsmux). Then the SSH connection is established with a local port. Thus, even if you make the connection to this port happen via mosh, restarting a terminal or temporarily losing the Internet connection would break the WebSocket tunnel.

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