cURL / Mailing Lists / curl-library / Single Mail

curl-library

sftp quote command issue

From: mini thomas <mini_mol_thomas_at_yahoo.com>
Date: Wed, 21 Apr 2010 08:28:43 -0700 (PDT)

Hi,
 
I am using sftp delete command. The curl binary always gives the error "curl: (21) Syntax error in SFTP command. Supply parameter(s)!".
 
Please find the comamnd and curl version details below.

D:\lib>curl -u usr:mypassword  "sftp://192.168.2.49/m.obj" -Q \"DELE sftp://192.168.2.49/m.obj\"  -v
* About to connect() to 192.168.2.49 port 22 (#0)
*   Trying 192.168.2.49... connected
* Connected to 192.168.2.49 (192.168.2.49) port 22 (#0)
* SSH authentication methods available: publickey,gssapi-with-mic,password
* Using ssh public key file id_dsa.pub
* Using ssh private key file id_dsa
* SSH public key authentication failed: Unable to open public key file
* Initialized password authentication
* Authentication complete
* Sending quote commands
* Syntax error in SFTP command. Supply parameter(s)!
* Connection #0 to host 192.168.2.49 left intact
curl: (21) Syntax error in SFTP command. Supply parameter(s)!
* Re-using existing connection! (#0) with host 192.168.2.49
* Connected to 192.168.2.49 (192.168.2.49) port 22 (#0)
* Sending quote commands
* Syntax error in SFTP command. Supply parameter(s)!
* Connection #0 to host 192.168.2.49 left intact
curl: (21) Syntax error in SFTP command. Supply parameter(s)!
* Closing connection #0

D:\lib>curl --version
curl 7.20.1 (i386-pc-win32) libcurl/7.20.1 OpenSSL/0.9.8e libssh2/0.18
Protocols: dict file ftp ftps http https imap imaps ldap pop3 pop3s rtsp scp sftp smtp smtps telnet tftp
Features: AsynchDNS Largefile NTLM SSL
 
OS is Windows XP.
 
Thanks,
Mini

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2010-04-21