6

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/...

Comments
  • 2
    I also recommend mosh
  • 1
    Or, you could just set the ssh keepalive in your ssh config and never have a timeout again
  • 1
    @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.
  • 1
    @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
  • 1
    @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.
  • 2
    @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.
Add Comment