Bug#667636: virt-manager qemu+ssh connects with wrong user

April 05th, 2012 - 10:00 am ET by Stefan Pietsch | Report spam
Package: python-libvirt
Version: 0.9.11-1
Severity: normal

After updating python-libvirt and libvirt0 from 0.9.9-3 to 0.9.11-1 the
virt-manager connection with qemu+ssh fails.



Example:

$ virt-manager -c qemu+ssh://root@192.168.20.37/system


Unable to connect to libvirt.

Cannot recv data: Permission denied (publickey).
: Connection reset by peer

Verify that the 'libvirtd' daemon is running
on the remote host.

Libvirt URI is: qemu+ssh://root@192.168.20.37/system

Traceback (most recent call last):
File "/usr/share/virt-manager/virtManager/connection.py", line 1185,
in _open_thread
self.vmm = self._try_open()
File "/usr/share/virt-manager/virtManager/connection.py", line 1167,
in _try_open
flags)
File "/usr/lib/python2.7/dist-packages/libvirt.py", line 102, in
openAuth
if ret is None:raise libvirtError('virConnectOpenAuth() failed')
libvirtError: Cannot recv data: Permission denied (publickey).
: Connection reset by peer




The SSH connection uses my login name on the local machine instead of
the user "root" as in the qemu+ssh URI.

On the server we see in the auth.log:
sshd[19002]: Invalid user stefan from 192.168.20.101



Regards,
Stefan




To UNSUBSCRIBE, email to debian-bugs-dist-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
email Follow the discussionReplies 2 repliesReplies Make a reply

Replies

#1 Guido Günther
April 05th, 2012 - 11:20 am ET | Report spam
reassign 667636 libvirt0

thanks

On Thu, Apr 05, 2012 at 03:50:34PM +0200, Stefan Pietsch wrote:
Package: python-libvirt
Version: 0.9.11-1
Severity: normal

After updating python-libvirt and libvirt0 from 0.9.9-3 to 0.9.11-1 the
virt-manager connection with qemu+ssh fails.



This doesn't look python specific as it can be easily reproduced with
virsh alone.




Example:

$ virt-manager -c qemu+ssh:///system


Unable to connect to libvirt.

Cannot recv data: Permission denied (publickey).
: Connection reset by peer

Verify that the 'libvirtd' daemon is running
on the remote host.

Libvirt URI is: qemu+ssh:///system

Traceback (most recent call last):
File "/usr/share/virt-manager/virtManager/connection.py", line 1185,
in _open_thread
self.vmm = self._try_open()
File "/usr/share/virt-manager/virtManager/connection.py", line 1167,
in _try_open
flags)
File "/usr/lib/python2.7/dist-packages/libvirt.py", line 102, in
openAuth
if ret is None:raise libvirtError('virConnectOpenAuth() failed')
libvirtError: Cannot recv data: Permission denied (publickey).
: Connection reset by peer




The SSH connection uses my login name on the local machine instead of
the user "root" as in the qemu+ssh URI.

On the server we see in the auth.log:
sshd[19002]: Invalid user stefan from 192.168.20.101



Regards,
Stefan




_______________________________________________
Pkg-libvirt-maintainers mailing list

http://lists.alioth.debian.org/cgi-...aintainers






To UNSUBSCRIBE, email to
with a subject of "unsubscribe". Trouble? Contact

Similar topics