You are correct. My system will not understand ~/. The control does not even reach the place where keyfile1 is used. The server that I connect to supports password authentication, so control will never reach the place where keyfile1 is used.
I am able to connect to the server using winscp while the libssh2 fails. On Thu, Sep 30, 2010 at 2:40 PM, Daniel Stenberg <[email protected]> wrote: > On Wed, 29 Sep 2010, Sriram Swaminathan wrote: > > const char *keyfile1="~/.ssh/id_rsa.pub"; >> const char *keyfile2="~/.ssh/id_rsa"; >> > > Can your system really convert "~/" in the file name to look relative your > home directory? That's usually a feature of the shell, not the open or fopen > calls... > > -- > > / daniel.haxx.se > _______________________________________________ > libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel >
_______________________________________________ libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
