现象
环境是2台已经安装好的KVM服务器A\B,当A服务器利用Virt-manager工具连接远程服务器B时报错:
Unable to open a connection to the libvirt management daemon.
Libvirt URI is: qemu+ssh://[email protected]/system
Verify that:
– The ‘libvirtd’ daemon has been startedCannot recv data: ssh_askpass: exec(/usr/libexec/openssh/ssh-askpass): No such file or directory
Permission denied, please try again.
ssh_askpass: exec(/usr/libexec/openssh/ssh-askpass): No such file or directory
Permission denied, please try again.
ssh_askpass: exec(/usr/libexec/openssh/ssh-askpass): No such file or directory
Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password).: Connection reset by peerTraceback (most recent call last):
File “/usr/share/virt-manager/virtManager/connection.py”, line 1168, in _open_thread
self.vmm = self._try_open()
File “/usr/share/virt-manager/virtManager/connection.py”, line 1152, in _try_open
flags)
File “/usr/lib64/python2.6/site-packages/libvirt.py”, line 102, in openAuth
if ret is None:raise libvirtError(‘virConnectOpenAuth() failed’)
libvirtError: Cannot recv data: ssh_askpass: exec(/usr/libexec/openssh/ssh-askpass): No such file or directory
Permission denied, please try again.
ssh_askpass: exec(/usr/libexec/openssh/ssh-askpass): No such file or directory
Permission denied, please try again.
ssh_askpass: exec(/usr/libexec/openssh/ssh-askpass): No such file or directory
Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password).: Connection reset by peer
解决:
在A服务器安装openssh-askpass
yum install openssh-askpass