[virt-tools-list] libvirt ssh

Cole Robinson crobinso at redhat.com
Wed Apr 4 21:08:36 UTC 2018


On 04/04/2018 04:53 PM, Alberto Sosa wrote:
> Hi!
> My name is Alberto and I'm computer science student. I'm doing my final degree project that consist on a web interface for vm management using libvirt, python and flask.
> I'm stuck on making connections via SSH: I tried to get username and password from html form but libvirt.open('qemu+ssh....') prompts the password via terminal. How can I passthrough password prompt using python?
> 

There isn't any way with qemu+ssh unfortunately, it spawns an external
ssh process and we can't really control interaction with it. Dan
explained it a bit here before:

https://www.redhat.com/archives/libvirt-users/2013-April/msg00093.html

Nowadays there's also qemu+libssh which can be combined with openAuth to
do password callback handling, but I haven't tried it myself

- Cole




More information about the virt-tools-list mailing list