webvirtcloud icon indicating copy to clipboard operation
webvirtcloud copied to clipboard

Error: Cannot recv data: Host key verification failed.: Connection reset by peer

Open newzen opened this issue 8 years ago • 4 comments

Hello,

Great job!

i receive this error while trying to add host via ssh

Error: Cannot recv data: Host key verification failed.: Connection reset by peer

from command line on machine running WebVirtCloud interfase

virsh -c qemu+ssh://[email protected]/system Bienvenido a virsh, la terminal de virtualización interactiva.

Ingrese: 'help' para obtener ayuda con los comandos 'quit' para salir

any help ?

and using python [root@phenom ~]# python Python 2.7.5 (default, Nov 20 2015, 02:00:19) [GCC 4.8.5 20150623 (Red Hat 4.8.5-4)] on linux2 Type "help", "copyright", "credits" or "license" for more information.

import libvirt conn=libvirt.open("qemu+ssh://[email protected]/system") names = conn.listDefinedDomains() print names ['winXpDev01', 'vit32dev']

after that the error steel.

newzen avatar Jun 24 '16 16:06 newzen

Solved :+1: on server running WebVirtCloud

su -s /bin/bash nginx ssh-keygen ssh-copy-id [email protected] you need to accept add key exit

WebVirtCloud use nginx user for authenticate on kvm administered host.

thanks for great job.

newzen avatar Jun 26 '16 13:06 newzen

Thank you, @newzen . I've encountered similar issues when importing KVM virtual machines from libvirt via ovrit webUI. Your approach works well.

On the host into which the KVM virtual machines will be imported, run

su -s /bin/bash vdsm
ssh-keygen
ssh-copy-id root@YOUR_KVM_HOST
you need to accept add key

weijianwen avatar Apr 13 '18 05:04 weijianwen

Thank you, @newzen . I've encountered similar issues when importing KVM virtual machines from libvirt via ovrit webUI. Your approach works well.

On the host into which the KVM virtual machines will be imported, run

su -s /bin/bash vdsm
ssh-keygen
ssh-copy-id root@YOUR_KVM_HOST
you need to accept add key

Thank you @weijianwen . this helps me since this tutorial i tried to follow is kinda confusing since i don't have vdsm user activated by default

im-perativa avatar Jul 07 '21 05:07 im-perativa

https://github.com/retspen/webvirtcloud/wiki/Docker-Installation-&-Update

I use docker to install , but there is no nginx or vdsm, some idea?

wideweide avatar Mar 25 '23 10:03 wideweide