Environment info Please paste the output of println ssh.version e.g. groovy-ssh-x.x.x (java-1.8.0_xx, groovy-2.4.x, jsch-0.1.x). If it is difficult, describe version of Groovy SSH, JVM and OS. Steps to reproduce // Paste the snippet of script or logs