Enable SSH dead peer detection 12/3012/2
authorC.J. Collier <cjcollier@linuxfoundation.org>
Wed, 21 Sep 2016 01:25:34 +0000 (18:25 -0700)
committerC.J. Collier <cjcollier@linuxfoundation.org>
Wed, 21 Sep 2016 01:30:18 +0000 (18:30 -0700)
Change-Id: I26e858e911fb9be2c03603e044459b11bab3b626
Signed-off-by: C.J. Collier <cjcollier@linuxfoundation.org>
vagrant/lib/bootstrap-functions.sh

index 52aebea..c3e1c85 100644 (file)
@@ -2,6 +2,11 @@
 
 do_setup() {
     echo "127.0.1.1 $(hostname) # temporary" >> /etc/hosts
+
+    # Dead peer detection
+    echo "TCPKeepAlive        true" >> /etc/ssh/ssh_config
+    echo "ServerAliveCountMax 30"   >> /etc/ssh/ssh_config
+    echo "ServerAliveInterval 10"   >> /etc/ssh/ssh_config
 }
 
 do_mvn_install() {