-
New Feature
-
Resolution: Won't Fix
-
Minor
-
Jenkins ver. 1.580.1
SSH Slaves plugin 1.9
Short: Be able to configure ssh KeepAlive in the advanced pane of the ssh slave.
Long: We have a few connections from master to slaves using ssh-slave plugin. Some of these connections go through some network equipment that might consider the connection dead if it hasn't seen activity in the last x minutes. We have been experiencing some connectivity problems and would like to rule out ssh/tcp route issues.
+1 to this improvement.
I have found a workaround for this.
1. Change the /etc/ssh/ssh_config by appending the following line to the end of this file. This tells the ssh client to send nop command periodically to avoid the ssh connection being disconnected. The unit of 80 is seconds. You may tune this parameter based on your network condition.
2. In the Jenkins slave configuration page, change the Launch method to "Launch slave via execution of command on the Master". See the Jenkins built-in help for more details.
So far, I haven't see any issues in this configuration. Hope this helps.