[Pkg-libvirt-maintainers] Bug#513599: Bug#513599: Can't connect to remote host via ssh without ssh-askpass*

Sebastian Andrzej Siewior sebastian at breakpoint.cc
Thu Feb 5 12:33:12 UTC 2009


* Guido G?nther | 2009-02-05 11:10:07 [+0100]:

>On Fri, Jan 30, 2009 at 04:57:18PM +0100, Sebastian Andrzej Siewior wrote:
>> Package: virt-manager
>> Version: 0.6.0-6
>> Severity: wishlist
>> 
>> If someone is connecting to a remote host via ssh virt-manager fails to connect
>> if there is no auto-connect available (i.e. the remote key has a sshkey
>> with no passphrase).
>> The only solution is to install a tool which ask you for a password like
>> * ssh-askpass
>> * ssh-askpass-fullscreen
>> * ssh-askpass-gnome
>I wonder if the suggestion alone help to figure out the root of the
>problem? Wouldn't it be better to improve the error message provided to
>the user?

Did you have something like the attached patch in mind?

>Cheers,
> -- Guido

Sebastian
-------------- next part --------------
--- a/src/virtManager/connection.py
+++ b/src/virtManager/connection.py
@@ -495,7 +495,10 @@ class vmmConnection(gobject.GObject):
                     ("Unable to open connection to hypervisor URI '%s':\n" %
                      str(self.uri)) + \
                     str(type) + " " + str(value) + "\n" + \
-                    traceback.format_exc (stacktrace)
+                    traceback.format_exc (stacktrace) + \
+                    "\nMaybe you need to install ssh-askpass in order " + \
+                    "to authenticate."
+
             logging.error(self.connectError)
 
         # We want to kill off this thread asap, so schedule a gobject


More information about the Pkg-libvirt-maintainers mailing list