Hello ,
Can some please clarify my doubts . 1. I am using below method for key-based authentication . It expects me to give path for both Public-Key and Private-Key on l;ocal client m/c . Why is it so . I would expect to give the public key path of the remote server to which my client is doing ssh . while((rc = libssh2_userauth_publickey_fromfile(session, "root", "C:\\ssh\\ssh-keygen\\id_rsa.pub", "C:\\ssh\\ssh-keygen\\id_rsa", "")) == LIBSSH2_ERROR_EAGAIN) 2. What is the mechanism with libssh2 follows for known-hosts . Ideally ssh server should maintain a known-hosts file but below method expects me to provide known-hosts on my local client m/c . /* Read the known hosts file */ rc = libssh2_knownhost_readfile(nh, "C:\\ssh\\ssh-keygen\\known_hosts",LIBSSH2_KNOWNHOST_FILE_OPENSSH); /* Write the Known-Hosts File content */ rc = libssh2_knownhost_writefile(nh, "C:\\ssh\\ssh-keygen\\dumpfile",LIBSSH2_KNOWNHOST_FILE_OPENSSH); Is there a detailed documentation on how libssh2 works in handling remote ssh connection ? Thanks & Regards, Ashish Kumar
_______________________________________________ libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel