Replies: 3 comments 8 replies
-
That cant be done, when you sleep your laptop, the remote side will eventually assume the connection is dead and drop the connection. You could theoretically configure the remote side to wait 10 hours before dropping connections, but this is slightly non-trivial to do as it means configuring the ssh daemon and the kernel on the remote machine and it can have unwanted side effects for other connections. |
Beta Was this translation helpful? Give feedback.
2 replies
-
I have been running servers with multi year uptimes for multiple
decades, probably since before you were born. I have **never** used
terminal multiplexers, they are a complete anti-pattern, and always
were, even when terminals were far less capable than they are now.
And I definitely do not appreciate the insinuation that I am lying about
my usage of multiplexers, continue trying to make this personal and I will block
you.
As for your use case, if you really find yourself needing to stay logged
into a remote server overnight, **and** you really want to sleep your laptop
overnight, use one of the may non-multiplexing tools that preserve remote
session across disconnects. Though personally, I would advise you to
change your workflow to do actual work locally rather than when logged
into a server and sync your changes to the server, that's a far more
productive workflow in the long run.
Good luck.
|
Beta Was this translation helpful? Give feedback.
6 replies
-
On Tue, May 13, 2025 at 07:00:09AM -0700, adriaan wrote:
Yeah, there's always some lag – that's true. I think I've either gotten used to it, or gigabit internet just makes it less noticeable.
I'd like to know more about your approach, if you're willing to indulge me. I *want* to believe that what you're saying could work for my use case, because I would prefer to build on top of Kitty as opposed to Tmux.
Questions (from a sincere place of curiosity):
- How did you launch your jobs? Was this managed by HPC tools à la SLURM or did you launch the process yourself?
I am a simple guy, I used ssh with a control master and just ran the
command, the control master meant there is no connection setup latency, so it
was basically like running locally minus unavoidable network lag.
Essentially I had a tiny script that first built locally to make sure there were no
compiler errors, then rsync to the remote machine then build on remote
machine, then run whatever command(s) I specified. My development workflow was:
Work on code locally with one window in which I ran vim.
Execute the code in another window in which I was at a *local* shell, as
described above. Basically just press up and enter on each iteration :)
Have a third window open running a remote shell. This third window was
used for any temporary debugging/editing I wanted to do. I didnt persist
it.
- How did you monitor those processes? Were you able to reattach to them somehow? How about if you needed to debug them (e.g. fix a CUDA error)?
Cant help you there I am firmly in the debug with print/logging camp :)
But, nothing preventing you ssh-ing in and attaching to a process,
see my third window above. I am not familiar with CUDA so I cant comment
on any nuances there.
- Did you have multiple jobs running in parallel?
Yes, of course, cant really do numerics with just a single job.
I would typically have multiple "workspaces" each a group of three
windows described above.
Note that it has been over a decade since I did this, so I am likely
forgetting some details.
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, this is not a bug report, just something I'm very confused about.
My use case is (I have full control over both the laptop and the server.):
I've used
tmux
for a long time. Kovid says tmux isn't necessary, so I try with kitty+kitten:kitty +kitten ssh
the session feels more persistent than a regularssh
session. It easily survives a couple minutes of sleep. Perhaps it does something similar tomosh
?It would be great if this was addressed in the docs, it's such a common use case! Or perhaps it is addressed and I just can't find it...
Anyways thank you for kitty, it's marvelous!
Beta Was this translation helpful? Give feedback.
All reactions