Displaying 2 results from an estimated 2 matches for "srv_pubkey".
2019 Mar 06
0
[PATCH nbdkit] Add ssh plugin using libssh.
...h_session session;
+ sftp_session sftp;
+ sftp_file file;
+};
+
+/* Verify the remote host.
+ * See: http://api.libssh.org/master/libssh_tutor_guided_tour.html
+ */
+static int
+verify_remote_host (struct ssh_handle *h)
+{
+ enum ssh_known_hosts_e state;
+ unsigned char *hash = NULL;
+ ssh_key srv_pubkey = NULL;
+ size_t hlen;
+ int rc;
+
+ rc = ssh_get_server_publickey (h->session, &srv_pubkey);
+ if (rc < 0) {
+ nbdkit_error ("could not get server public key");
+ return -1;
+ }
+ rc = ssh_get_publickey_hash (srv_pubkey,
+ SSH_PUBLICKEY...
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.