Add logging to the SSH slave and reboot state logging
Merge branch 'JENKINS-25209' into develop