On Thu, Feb 24, 2011 at 02:05:12PM +0800, CHEN Xiaolei A wrote:
>    In Sun solaris os,  client could use command sftp (a tool of openssh) to 
> log
> on remote server,  and this manual way will be impacted by SSH config file "/
> home/username/.ssh/config".  If setting "StrictHostKeyChecking yes" in that
> file,  then sftp command will check whether remote host's key exists in local
> "known_hosts" firstly,  if not,  SFTP log on will fail.
> 
>  
>    I did a test to check whether SFTP program using libcurl will be impacted 
> by
> that SSH config file, and the result is no. So my question is:
> 
>    (1) Is it possible that SFTP program using libcurl could be impacted by 
> that
> SSH config file, if I set some CURLOPT_SSH_XXXXXX in my program ?

No, curl and libcurl do not read OpenSSH configuration files.

>    (2) If it's impossible for (1),  then could I make that
> "StrickHostKeyChecking yes" available in my libcurl program,  through setting
> CURLOPT_SSH_XXX ? 

The CURLOPT_SSH_HOST_PUBLIC_KEY_MD5 option does what you want.

>>> Dan
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html

Reply via email to