Displaying 3 results from an estimated 3 matches for "ssh_auth_success".
2019 Mar 06
0
[PATCH nbdkit] Add ssh plugin using libssh.
...rd);
+ if (rc == SSH_AUTH_ERROR)
+ nbdkit_debug ("password authentication failed: %s",
+ ssh_get_error (session));
+ return rc;
+}
+
+static int
+authenticate (struct ssh_handle *h)
+{
+ int method, rc;
+
+ rc = ssh_userauth_none (h->session, NULL);
+ if (rc == SSH_AUTH_SUCCESS)
+ return 0;
+ if (rc == SSH_AUTH_ERROR)
+ return -1;
+
+ method = ssh_userauth_list (h->session, NULL);
+
+ if (method & SSH_AUTH_METHOD_PUBLICKEY) {
+ rc = authenticate_pubkey (h->session);
+ if (rc == SSH_AUTH_SUCCESS) return 0;
+ }
+
+ /* Example code tries keyboard-i...
2019 Mar 06
2
[PATCH nbdkit] Add ssh plugin using libssh.
This adds a simple plugin using libssh (not libssh2). The intended
use for this is with virt-v2v when sourcing guests from VMware over
SSH.
We've had several years of problems getting our libssh-based driver
into qemu. By putting it into nbdkit instead we can bypass that.
However this also lets us combine ssh access with filters, in
particular the recently written ‘rate’ filter.
Rich.
2006 Jan 08
3
Allow --without-privsep build.
...714,12 @@ main(int ac, char **av)
* If we use privilege separation, the unprivileged child transfers
* the current keystate and exits
*/
+#ifdef USE_PRIVSEP
if (use_privsep) {
mm_send_keystate(pmonitor);
exit(0);
}
-
+#endif
authenticated:
#ifdef SSH_AUDIT_EVENTS
audit_event(SSH_AUTH_SUCCESS);
--
dwmw2