]> git.ipfire.org Git - thirdparty/libvirt.git/commit
libssh2_transport: Use libssh2 driver code in remote driver
authorPeter Krempa <pkrempa@redhat.com>
Tue, 17 Jul 2012 13:48:04 +0000 (15:48 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Tue, 21 Aug 2012 12:47:09 +0000 (14:47 +0200)
commitdfbb2d31208deeb68570a8242a3fae08b1bd27c7
tree2b363f7d896dbe227fe79e8c7ee1e49ef1eb5bab
parent25f2c8b4b04807f5c24fa87dc54d929ba1331421
libssh2_transport: Use libssh2 driver code in remote driver

This patch adds URI options to support libssh2 transport in the remote
driver.

A new transport sceme is introduced eg. "qemu+libssh2://..." that
utilizes the libssh2 code added in previous patches.

The libssh2 code requires the authentication callback to be able to
perform keyboard-interactive authentication or to ask t passprhases or
add host keys to known hosts database.

Added URI components:
- known_hosts -  path to a knownHosts file in OpenSSH format to check
                 for known ssh host keys
- known_hosts_verify - how to deal with server key verification:
                            * "normal" (default) - ask to add new keys
                            * "auto" - automaticaly add new keys
                            * "ignore" - don't validate host keys
- sshauth - authentication methods to use. Default is
            "agent,privkey,keyboard-interactive". It's a comma separated
            string of methods to try while authenticating. The order is
            preserved. Some of the methods may require additional
            parameters.

Locations of the known_hosts file and private keys are set to default
values if they're present. (~/.ssh/known_hosts, ~/.ssh/id_rsa,
                            ~/.ssh/id_dsa)
src/remote/remote_driver.c