cURL / Mailing Lists / curl-users / Single Mail

curl-users

RE: curl: (79) scp: /test.txt: No such file or directory

From: Alex Bligh <alex_at_alex.org.uk>
Date: Tue, 29 Jun 2010 17:17:06 +0100

>>> $ curl -v -u sharmam:qwer5678 -T testt.txt scp://dicmdb01/~/
>>
>> Try with the full path (not a tilde).
>
> You are right Alex! Replacing the ~ sign with the actual path worked.
> That's basically a workaround. But ~ sign was working for me in the
> earlier libssh2 version; and this sign works for SFTP too.
>
> Can someone throw the light on the issue?

I am not sure whether the scp URL spec is meant to expand tildes. Still,
it's a little odd that sftp does and scp doesn't.

-- 
Alex Bligh
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-users
FAQ:        http://curl.haxx.se/docs/faq.html
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2010-06-29