sudo systemctl restart sshd
# configure sysctl
-sudo sysctl -w net.ipv4.tcp_keepalive_time=120
-sudo sysctl -w net.ipv4.tcp_keepalive_intvl=30
-sudo sysctl -w net.ipv4.tcp_keepalive_probes=8
-sudo sysctl -w net.ipv4.tcp_fin_timeout=30
-sudo sysctl -w fs.inotify.max_user_watches=524288
-sudo sysctl -w fs.inotify.max_user_instances=1024
-sudo sysctl -w fs.file-max=2097152
+sudo sh -c "sysctl -w net.ipv4.tcp_keepalive_time=120 >> /etc/sysctl.conf"
+sudo sh -c "sysctl -w net.ipv4.tcp_keepalive_intvl=30 >> /etc/sysctl.conf"
+sudo sh -c "sysctl -w net.ipv4.tcp_keepalive_probes=8 >> /etc/sysctl.conf"
+sudo sh -c "sysctl -w net.ipv4.tcp_fin_timeout=30 >> /etc/sysctl.conf"
+sudo sh -c "sysctl -w fs.inotify.max_user_watches=524288 >> /etc/sysctl.conf"
+sudo sh -c "sysctl -w fs.inotify.max_user_instances=1024 >> /etc/sysctl.conf"
+sudo sh -c "sysctl -w fs.file-max=2097152 >> /etc/sysctl.conf"
# update ~jenkins/.profile
sudo bash -c "echo 'export PATH=\$PATH:/usr/local/go/bin' >> /home/jenkins/.profile"