curl-users
Re: What I do wrong with this sftp command with curl?
From: Dan Fandrich <dan_at_coneharvesters.com>
Date: Wed, 14 Nov 2007 16:14:34 -0800
Date: Wed, 14 Nov 2007 16:14:34 -0800
On Wed, Nov 14, 2007 at 07:05:50PM -0500, Wei Weng wrote:
> Err, never mind, I just found out myself. Seems like unlike ftp, sftp
> doesn't automatically put yourself into the $HOME directory.
> Basically change the command to
>
> curl -v -u wweng:mypass sftp://192.168.1.162/home/wweng/test.jpg > test.jpg
>
> worked.
The other way would be :
curl -v -u wweng:mypass -O sftp://192.168.1.162/~/test.jpg
>>> Dan
-- http://www.MoveAnnouncer.com The web change of address service Let webmasters know that your web site has movedReceived on 2007-11-15