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

Remote tunnel for a single session, without "startup screen" for clients #310

Open
gaborcsardi opened this issue Nov 17, 2024 · 0 comments

Comments

@gaborcsardi
Copy link

Thanks for a great tool! I am trying to set up tmate on an ephemeral remote server (GitHub Actions VM), for a single a session. I.e. tmate should quit after the last client disconnects.

It works great with the usual

tmate new -d
tmate wait tmate-ready
tmate display -p '#{tmate_ssh}'

commands, except that I would like to get rid of the initial screen when the client connects:

Tip: if you wish to use tmate only for remote access, run: tmate -F                              [0/0]
To see the following messages again, run in a tmate session: tmate show-messages
Press <q> or <ctrl-c> to continue
...

This is a remote client, already using the same ssh command, so there is no need printing it.

Is this possible?

I know that foreground mode with -F will avoid the message, but it will also restart the session when the clients exit, and I don't want that, I only want a single session. The server should quit after that session ends.

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

1 participant