However if you execute the same command through the Jenkins CLI command with the -ssh option, the timeout is ignored.
*Reproduction steps* * Run Jenkins with the property -Dorg.jenkinsci.main.modules.sshd.SSHD.idle-timeout=0 * Create a pipeline with a sleep higher than 10 minutes: * {code:java} stage('10 Minute Wait') { echo "Started the 10 minute wait" sleep(time:610,unit:"SECONDS") echo "The big sleep is over" }{code}