Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
endor56666yOr, you could just set the ssh keepalive in your ssh config and never have a timeout again
-
@endor I never tried that. I have a daughter, so most of the time that happens, it took me really long to come back. So I am not sure if I want a very long TimeOut there.
-
endor56666y@brunofontes the ssh keepalive sends a null packet every <x> seconds (configurable) to the server, so as long as your terminal window stays open, your connection to the server will stay alive (virtually forever).
You can set this per-server or for all servers in your ssh config, or even set it in the server's sshd config so that all clients connecting to it will have their connection kept alive without having to specify anything in their config.
If you're worried about security, you could just enable automatic screen lock, that way you won't have to re-open any ssh connections when you're back -
@endor it's a good idea. Thanks! I am going to try that later. :)
For now I just use ssh to my hosting, so I am still learning about this.
Usually the computer enters on sleep mode, so it locks itself. -
@dufferz mosh is a great concept, but it has one fatal flaw: no scrollback. The whole protocol is supposedly made for portable devices. What's the main characteristic of portable devices? Really fucking tiny screens. Can't even list my home dir without piping to less.
Related Rants
I just discover vim-anywhere and tmux at the same time.
It's mind blowing!
Every time I was changing something on my website over SSH I have to go out for a few minutes and I have a TimeOut.
Vim-anywhere does not need any comments.
https://github.com/cknadler/...
rant
tmux
vim
vim-anywhere