Provided to YouTube by Believe SAS Keep It Alive Shiraz Lane Vibration I ℗ Ranka Kustannus Released on: 2020-01-17 Author: Antti Vilkkumaa Composer: Antti. Available on Mac, and as a separate app for iPhone and iPad, Keep It is the destination for all those things you want to put somewhere, confident you will find them again later. Keep It is the successor to Together, can import Together libraries, and all Together 3 users can get a discount to upgrade to Keep It.
I admit it, I’m always with a lot of applications opened, Chrome with at least 6 tabs, Skype, Slack, PHPStorm or SublimeText, Airmail or Outlook for Mac, Photoshop and terminal.
I regularly login via SSH to VPS in Digital Ocean and AWS EC2 and then run some commands like:
Then I go to the wordpress site and start adjusting the settings, but by the time I get back to the terminal (5 – 10 minutes), the SSH session is frozen, so I’m forced to open a new one. I honestly became tired of this, and I remembered that SSH was built on TCP and as such it should have some “Keep Alive” settings like on SIP (sorry I come from the call center world). And after some search online, I found that you can make this change both from the server side (SSHD: Secure SHell Daemon) or from your CLI (*nix, Linux & Mac).
All you need to do is to setup your ssh client to send a “Keep Alive” signal to the server every certain amount of seconds. So you can add the following text to your ~/.ssh/config
file:
This basically tells your computer to send “keep alive” signals to remote-host.com every 120 seconds (2 minutes). That way the session will not get frozen for that server.
If you want to enable this for all of the hosts that you connect to, then simply add the following strings instead:
This will setup the “keep alive” signal interval to 2 minutes for any host that you connect to via SSH.
After you finish editing the file, please make sure to change the permissions on the file using the following command:
And there you go, as simple as that! No more timeouts on my terminal app on my Mac OS El capitan MBP!