Re: qemu+ssh authentication

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxx> 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@xxxxxxxxxx>

_______________________________________________
libvirt-users mailing list
libvirt-users@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvirt-users




[Index of Archives]     [Virt Tools]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [KDE Users]

  Powered by Linux