Fixed "/dev/stdin: Stale file handle" in sshcommand