Hi, all: 

I looked at the source code in example/simple/sftp.c again, to find that there 
is such comments:
/*
 * $Id: sftp.c,v 1.17 2009/04/28 10:35:30 bagder Exp $
 *
 * Sample showing how to do SFTP transfers.
 *
 * The sample code has default values for host name, user name, password
 * and path to copy, but you can specify them on the command line like:
 *
 * "sftp 192.168.0.1 user password /tmp/secrets -p|-i|-k"
 */

Yes, my compiled sftp command is finished smoothly, but I didn't see anything 
is copied over. Isn't the comment saying this is to copy something to local 
path?

Say, if I use "./sftp 13.198.98.190 qxu fair123 /home/qxu/test/setup", 
shouldn't the remote file "setup" be copied to where the excutable sftp lies?

Got confused,
Xu Qiang
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel

Reply via email to