search for: ssh_auth_error

Displaying 3 results from an estimated 3 matches for "ssh_auth_error".

2019 Mar 06
0
[PATCH nbdkit] Add ssh plugin using libssh.
...+ } + + ssh_clean_pubkey_hash (&hash); + return 0; +} + +/* Authenticate. + * See: http://api.libssh.org/master/libssh_tutor_authentication.html + */ +static int +authenticate_pubkey (ssh_session session) +{ + int rc; + + rc = ssh_userauth_publickey_auto (session, NULL, NULL); + if (rc == SSH_AUTH_ERROR) + nbdkit_debug ("public key authentication failed: %s", + ssh_get_error (session)); + + return rc; +} + +static int +authenticate_password (ssh_session session, const char *password) +{ + int rc; + + rc = ssh_userauth_password (session, NULL, password); + if (rc =...
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.
2019 Sep 01
11
[nbdkit PATCH 00/10] Avoid -Wshadow
While working on can_FOO caching, at one point I got confused by whether 'readonly' meant the global set by -r or a local passed to .open(). A quick attempt to compile with -Wshadow found several other confusing points; this series gets us to the point that we can add -Wshadow to builds with --enable-gcc-warnings. Eric Blake (10): server: Avoid -Wshadow warnings guestfs: Avoid