If you use libvirt with the ‘sudo’ prefix ($ sudo virsh –c 
qemu+ssh://[host]/system) you also have to setup passwordless login for the 
root user.

You can test it by:
$ sudo –i
$ ssh –l root [host]

Van: libvirt-users-boun...@redhat.com [mailto:libvirt-users-boun...@redhat.com] 
Namens nidhi d
Verzonden: donderdag 24 maart 2016 11:44
Aan: Michal Privoznik; libvirt-users@redhat.com
Onderwerp: Re: [libvirt-users] (no subject)

I have made all these changes in my Ubuntu desktop. I have also enabled 
passwordless login for ssh at destination. But still, everytime i run into the 
same problem.

On Thu, Mar 24, 2016, 4:05 PM Michal Privoznik 
<mpriv...@redhat.com<mailto:mpriv...@redhat.com>> wrote:
On 24.03.2016 11:23, nidhi d wrote:
> From the auth log at the destination:
> Failed password for <user> from <ip> port <no> ssh2

There's your answer. Libvirt really requires pubkey instead of passwd auth.

http://wiki.libvirt.org/page/SSHSetup

Michal
_______________________________________________
libvirt-users mailing list
libvirt-users@redhat.com
https://www.redhat.com/mailman/listinfo/libvirt-users

Reply via email to