cURL
Haxx ad
libcurl

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curl-tracker Archives

[curl:bugs] #1173 Not able to specify relative path in the SCP URL

From: Balaji Parasuram <balajiparasuram_at_users.sf.net>
Date: Mon, 24 Dec 2012 10:24:51 +0000

Thanks.

---
** [bugs:#1173] Not able to specify relative path in the SCP URL**
**Status:** closed-fixed
**Labels:** SCP/SFTP 
**Created:** Wed Dec 12, 2012 07:23 AM UTC by Balaji Parasuram
**Last Updated:** Fri Dec 21, 2012 01:42 PM UTC
**Owner:** Daniel Stenberg
Curl manual states that "With sftp: and scp: URLs, the path name given is the absolute name on the server. To access a file relative to the remote user's home directory,  prefix the file with /~/ , such as: curl -u $USER sftp://home.example.com/~/.bashrc"
But the above advertised behavior doesn't work for SCP URLs. 
curl --version
curl 7.21.4 \(powerpc-pc-netbsd-gnu\) libcurl/7.21.4 OpenSSL/1.0.1c zlib/1.2.3 libssh2/1.4.2
\# curl scp://lab:lab_at_10.16.134.207/~/s4810.cfg -k
curl: \(79\) Failed to recv file
curl scp://lab:lab_at_10.16.134.207/~/text.cfg -v -k
\* About to connect\(\) to 10.16.134.207 port 22 \(\#0\)
\*   Trying 10.16.134.207... connected
\* Connected to 10.16.134.207 \(10.16.134.207\) port 22 \(\#0\)
\* SSH authentication methods available: publickey,password
\* Using ssh public key file /f10/.ssh/id\_dsa.pub
\* Using ssh private key file /f10/.ssh/id\_dsa
\* SSH public key authentication failed: Unable to open public key file
\* Initialized password authentication
\* Authentication complete
\* SSH CONNECT phase done
\* Failed to recv file
\* Connection \#0 to host 10.16.134.207 left intact
curl: \(79\) Failed to recv file
\* Closing connection \#0
SStk-0 \# curl sftp://lab:lab@10.16.134.207/~/text.cfg -v -k
\* About to connect\(\) to 10.16.134.207 port 22 \(\#0\)
\*   Trying 10.16.134.207... connected
\* Connected to 10.16.134.207 \(10.16.134.207\) port 22 \(\#0\)
\* SSH authentication methods available: publickey,password
\* Using ssh public key file /f10/.ssh/id\_dsa.pub
\* Using ssh private key file /f10/.ssh/id\_dsa
\* SSH public key authentication failed: Unable to open public key file
\* Initialized password authentication
\* Authentication complete
Hello world
\* Connection \#0 to host 10.16.134.207 left intact
\* Closing connection \#0
---
Sent from sourceforge.net because you indicated interest in <https://sourceforge.net/p/curl/bugs/1173/>
To unsubscribe from further messages, please visit <https://sourceforge.net/auth/prefs/>
Received on 2012-12-24

These mail archives are generated by hypermail.

donate! Page updated January 05, 2012.
web site info

File upload with ASP.NET