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 running host in daemon mode? #181

Open
merlinran opened this issue Sep 17, 2023 · 1 comment
Open

Support running host in daemon mode? #181

merlinran opened this issue Sep 17, 2023 · 1 comment

Comments

@merlinran
Copy link

merlinran commented Sep 17, 2023

First of all, thanks for making this amazing tool! It's elegant in design and neat in implementation.

One of the intended use is

Access remote computers behind NATs and firewalls

but currently it is not the ideal tool for cases like accessing home servers from outside or troubleshooting deployed devices behind NAT because:

  1. The host is assigned a different session ID each time it connects to the server, so an out-of-band channel is required to publish the session ID so people can log in. If ID clash is not a concern, it would be more convenient if one can simply specify the ID/name of the host to log in.
  2. The session is deleted when the first logged in SSH session exits. What if we delete the session only when the host exits? I can imagine that to be useful in pairing or running a demo too - guests can join or leave without affecting the session. Or am I missing some important context here?
  3. Person on the host side needs to press a key to start accepting connection. This is easy to change by introducing a flag.

So to support daemon mode, it would require flags on both host and server side for 1 and 3, but would also need to change the termination behaviour of 2. Before I get my hands dirty I'd like to ask 1) does the above make sense, and 2) is this daemon mode idea fits in the scope of upterm or I'd better assume it to be a "hard fork"?

@bavarianbidi
Copy link
Contributor

  1. Person on the host side needs to press a key to start accepting connection. This is easy to change by introducing a flag.

will be fixed with #190

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