]> git.ipfire.org Git - thirdparty/libvirt.git/commit
libssh2_transport: add main libssh2 transport implementation
authorPeter Krempa <pkrempa@redhat.com>
Mon, 14 Nov 2011 14:30:23 +0000 (15:30 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Tue, 21 Aug 2012 12:47:09 +0000 (14:47 +0200)
commit1193fc5f4465a622b22c10b16ab8081e98c2e622
treed249745ceaa40c297998c66b778ba5e2f16bb3ca
parent9136032a66156b2434c816af1d6033055dce9606
libssh2_transport: add main libssh2 transport implementation

This patch adds helper functions that enable us to use libssh2 in
conjunction with libvirt's virNetSockets for ssh transport instead of
spawning "ssh" client process.

This implemetation supports tunneled plaintext, keyboard-interactive,
private key, ssh agent based and null authentication. Libvirt's Auth
callback is used for interaction with the user. (Keyboard interactive
authentication, adding of host keys, private key passphrases). This
enables seamless integration into the application using libvirt. No
helpers as "ssh-askpass" are needed.

Reading and writing of OpenSSH style "known_hosts" files is supported.

Communication is done using SSH exec channel, where the user may specify
arbitrary command to be executed on the remote side and reads and writes
to/from stdin/out are sent through the ssh channel. Usage of stderr is
not (yet) supported.
configure.ac
include/libvirt/virterror.h
po/POTFILES.in
src/Makefile.am
src/libvirt_libssh2.syms [new file with mode: 0644]
src/rpc/virnetsshsession.c [new file with mode: 0644]
src/rpc/virnetsshsession.h [new file with mode: 0644]
src/util/virterror.c