Search code examples
pythonlibvirt

Libvirt Python SSH connection timeout


I am developing a frontend for libvirt in Python and I'm using SSH as transport.

self.conn = libvirt.open("qemu+ssh://root@%s/system?no_tty=1" % node)

Is there a way to set connection timeout within libvirt? I checked docs and found no such thing, which leads me to believe I need to modify libvirt lib itself?


Solution

  • There is no way to set the SSH connection timeout in libvirt, it will just use the default in SSH, unless your $HOME/.ssh/config has overridden it.