On Mon, Apr 8, 2013 at 3:05 PM, Richard W.M. Jones <rjo...@redhat.com> wrote: > More specifically, here's the output on my machine: > > rjones@choo:~/d/qemu/tests/qemu-iotests$ > QEMU_PROG=~/d/qemu/x86_64-softmmu/qemu-system-x86_64 PATH=~/d/qemu:$PATH > ./check -ssh
gah, I just hit a libssh2 limitation. In my .ssh/config I have: NoHostAuthenticationForLocalhost yes This stops ssh from complaining when I hope to another host through an ssh tunnel (the host key wouldn't match localhost). $ ssh localhost ...works fine... $ ./qemu-img info ssh://localhost/home/stefanha/qemu/test.img no host key was found in known_hosts: (libssh2 error code: 0) qemu-img: Could not open 'ssh://localhost/home/stefanha/qemu/test.img': Invalid argument >From what I can see libssh2 does not support loading .ssh/config. This is a limitation not just for NoHostAuthenticationForLocalhost but also for all the Hostname aliases with User options that I have in my .ssh/config - I can't use them. I remember the Fabric tool had similar issues, it uses Python paramiko ssh implementation, and I think they added to code to parse .ssh/config so all these conveniences work: https://github.com/paramiko/paramiko/blob/master/paramiko/config.py What do you think? Stefan