[GH-ISSUE #120] Error: Cannot recv data: Host key verification failed.: Connection reset by peer #77

Closed
opened 2026-02-27 15:57:15 +03:00 by kerem · 5 comments
Owner

Originally created by @newzen on GitHub (Jun 24, 2016).
Original GitHub issue: https://github.com/retspen/webvirtcloud/issues/120

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://root@192.168.13.119/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://root@192.168.13.119/system")
names = conn.listDefinedDomains()
print names
['winXpDev01', 'vit32dev']

after that the error steel.

Originally created by @newzen on GitHub (Jun 24, 2016). Original GitHub issue: https://github.com/retspen/webvirtcloud/issues/120 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://root@192.168.13.119/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://root@192.168.13.119/system") > > > names = conn.listDefinedDomains() > > > print names > > > ['winXpDev01', 'vit32dev'] after that the error steel.
kerem closed this issue 2026-02-27 15:57:15 +03:00
Author
Owner

@newzen commented on GitHub (Jun 26, 2016):

Solved 👍
on server running WebVirtCloud

su -s /bin/bash nginx
ssh-keygen
ssh-copy-id root@192.168.13.119
you need to accept add key
exit

WebVirtCloud use nginx user for authenticate on kvm administered host.

thanks for great job.

<!-- gh-comment-id:228601776 --> @newzen commented on GitHub (Jun 26, 2016): Solved :+1: on server running WebVirtCloud su -s /bin/bash nginx ssh-keygen ssh-copy-id root@192.168.13.119 you need to accept add key exit WebVirtCloud use nginx user for authenticate on kvm administered host. thanks for great job.
Author
Owner

@weijianwen commented on GitHub (Apr 13, 2018):

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
<!-- gh-comment-id:381032303 --> @weijianwen commented on GitHub (Apr 13, 2018): 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 ```
Author
Owner

@im-perativa commented on GitHub (Jul 7, 2021):

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

<!-- gh-comment-id:875281949 --> @im-perativa commented on GitHub (Jul 7, 2021): > > > 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](https://access.redhat.com/documentation/en-us/red_hat_virtualization/4.2/html-single/virtual_machine_management_guide/index#Importing_a_Virtual_Machine_from_KVM) tutorial i tried to follow is kinda confusing since i don't have `vdsm` user activated by default
Author
Owner

@wideweide commented on GitHub (Mar 25, 2023):

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

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

<!-- gh-comment-id:1483792458 --> @wideweide commented on GitHub (Mar 25, 2023): https://github.com/retspen/webvirtcloud/wiki/Docker-Installation-&-Update I use docker to install , but there is no nginx or vdsm, some idea?
Author
Owner

@splusc commented on GitHub (Oct 15, 2024):

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

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

try www-data

<!-- gh-comment-id:2413207734 --> @splusc commented on GitHub (Oct 15, 2024): > https://github.com/retspen/webvirtcloud/wiki/Docker-Installation-&-Update > > I use docker to install , but there is no nginx or vdsm, some idea? try ```www-data```
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/webvirtcloud#77
No description provided.