mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-08-27 11:01:19 +00:00
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.
19 lines
441 B
Plaintext
19 lines
441 B
Plaintext
#
|
|
# ssh session - specific symbols
|
|
#
|
|
|
|
# virnetsshsession.h
|
|
#
|
|
virNetSSHChannelRead;
|
|
virNetSSHChannelWrite;
|
|
virNetSSHSessionAuthAddAgentAuth;
|
|
virNetSSHSessionAuthAddKeyboardAuth;
|
|
virNetSSHSessionAuthAddPasswordAuth;
|
|
virNetSSHSessionAuthAddPrivKeyAuth;
|
|
virNetSSHSessionAuthReset;
|
|
virNetSSHSessionAuthSetCallback;
|
|
virNetSSHSessionConnect;
|
|
virNetSSHSessionHasCachedData;
|
|
virNetSSHSessionSetChannelCommand;
|
|
virNetSSHSessionSetHostKeyVerification;
|