if ( $SSH2_Authentifizierung && $SSH2 -> auth_ok ) { print "Success"; } else { print join ", " , $SSH2 -> error; } }