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

Reconnect #69

Open
marcoas opened this issue Dec 9, 2020 · 1 comment
Open

Reconnect #69

marcoas opened this issue Dec 9, 2020 · 1 comment

Comments

@marcoas
Copy link

marcoas commented Dec 9, 2020

(Translated by Google)

Hi

When I disconnect from the remote terminal, doing 'exit', I am actually also closing the process on the server, and I cannot reconnect, since 'upterm' is no longer running.

Is there any way I can close my remote session, but leave the process running on the server?

@owenthereal
Copy link
Owner

@marcoas There may be some confusion on terms. By server, I think you mean the host which creates the terminal session: https://github.com/owenthereal/upterm#how-it-works. To keep the host terminal session when the client disconnects, you would need a terminal multiplexer like tmux, e.g. upterm host --force-command 'tmux attach -t pair-programming' -- tmux new -t pair-programming (Ref https://github.com/owenthereal/upterm#quick-reference). This creates a tmux session on the host and when the client joins, it joins with tmux attach to the tmux session. When typing exit on the client, it only disconnects the client but the host tmux session remains. Hope that helps.

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