Resolving virt-manager “You need to install openssh-askpass or similar to connect to this host”

A problem I’ve run into several times occurs when trying to run virt-manager on Gnome. When connecting to a new server, the connection will fail the the error:

Unable to connect to libvirt.

You need to install openssh-askpass or similar to connect to this host.

To get past this, open a terminal and run the following command:

$ sudo virt-manager --no-fork

Then pay attention to the terminal window, as any password prompts will appear there.

10 thoughts on “Resolving virt-manager “You need to install openssh-askpass or similar to connect to this host”

  1. Happened on Debian XFCE, never before seen it on Debian Gnome/Ubuntu. The apparent needed package in the Debian repos is razorqt-openssh-askpass

  2. Hi
    Excellent and much appreciated. Encountered this on an Archlinux trying to connect to remote hosts using the virt-manager. Frankly it is a 2 day struggle I had with Arch to get the virt-manager and KVM running on it and not least of them was this as my SSH key was pass-phrased
    Thanks again

  3. If you use gnome-shell, install the package x11-ssh-askpass instead of openssh-askpass and the problem is solved

Leave a Reply

Your email address will not be published. Required fields are marked *