curl-users
Re: Need help with SFTP
Date: Thu, 23 Oct 2008 22:43:28 -0700
On Fri, Oct 24, 2008 at 05:03:40AM -0000, Starbuck wrote:
> Running 7.19.0/SSL over WinXP/Pro/SP2.
>
> I want to SFTP to a remote Linux server. We run a router and NAT locally (I don't know if that's significant). I can't figure out why I can't get a full connection with cURL. We use FileZilla all the time with FTP and SFTP and have no problem accessing the server, so I don't think this is a passive/active connection issue. FileZilla shows the following SFTP negotiation:
[...]
> My cURL command is as follows:
> curl --ftp-ssl-control -sslv2 -v -m 60
> -u user.here:psw.here -s -S
> -o upload1.stdout
> -T upload1.data ftp://ftp.domain.com:22/ftp/
You're confusing SFTP with FTPS. The command line you're giving curl is
for an FTPS file transfer, but the Filezilla log clearly shows an SFTP
transfer. Try a command-line more like:
curl -v -m 60
-u user.here:psw.here -s -S
-o upload1.stdout
-T upload1.data sftp://ftp.domain.com/~/ftp/
>>> Dan
-- http://www.MoveAnnouncer.com The web change of address service Let webmasters know that your web site has moved ------------------------------------------------------------------- List admin: http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-users FAQ: http://curl.haxx.se/docs/faq.html Etiquette: http://curl.haxx.se/mail/etiquette.htmlReceived on 2008-10-24