$ssh2->auth_ok() or die "Not authorized";