On Mon, Apr 8, 2013 at 4:58 PM, Stefan Hajnoczi <stefa...@gmail.com> wrote: > On Mon, Apr 8, 2013 at 3:05 PM, Richard W.M. Jones <rjo...@redhat.com> wrote: > From what I can see libssh2 does not support loading .ssh/config.
I was told that sshfs *does* handle .ssh/config. Turns out that sshfs spawns "ssh -s sftp" to get a SFTP subsystem channel. Then it directly implements the SFTP application protocol. This way they don't need to link against libssh2. They spawn ssh with a socketpair on stdin/stdout. They send/receive SFTP messages directly. The benefit is that everything works (options, host key handling, and configuration files) like you'd expect from ssh/sftp/scp. You may be tired of trying different alternatives, but perhaps switching to this model is worth it. It would solve these integration/user friendliness issues that a libssh2 implementation has. Stefan