[libvirt-users] qemu+ssh authentication

Tomáš Golembiovský tgolembi at redhat.com
Mon Aug 22 12:00:16 UTC 2016


Hi,

AFAIK this is problem of ssh transport in libvirt. It does not use
the callback mechanism for authentication. The code you want would work
with libssh2 transport (i.e. 'qemu+libssh2://...'), unfortunately
libssh2 is not enabled in RHEL.

Cheers,

    Tomas

On Mon, 22 Aug 2016 14:16:02 +0300
Shahar Havivi <shavivi at redhat.com> wrote:

> Hi,
> 
> I try to login via the libvirt.openauth() API with qemu+tcp protocol and prompt for password,
> 
> I am setting the username, password and the callback methdod with the
> following keys:
> auth = [[libvirt.VIR_CRED_AUTHNAME, libvirt.VIR_CRED_PASSPHRASE], request_cred, None]
> 
> When I call openauth() method:
> conn = libvirt.openAuth('qemu+ssh://...', auth, 0)
> 
> I am getting prompt for entriyng password.
> When using qemu+tcp it works fine.
> 
> Thank you,
> 
>  Shahar.


-- 
Tomáš Golembiovský <tgolembi at redhat.com>




More information about the libvirt-users mailing list