Fixed return values in sshconnection