cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: SFTP issues

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Mon, 28 Apr 2008 10:12:04 +0200 (CEST)

On Mon, 28 Apr 2008, Abel Alonso wrote:

Please don't top-post.

> I'm running in a Windows System and compiling with Visual Studio 2005 SP1.
> The URL I use is the following:
>
> sftp://user:password@172.20.20.10:22/

Right, this URL is the server's *root dir* not the home dir of "user". I'm
afraid I can't tell you why, but the people who designed the SCP and SFTP URI
syntax decided that you need to use the following URL to get the user's home
dir:

   sftp://user:password@172.20.20.10:22/~/

-- 
  Commercial curl and libcurl Technical Support: http://haxx.se/curl.html
Received on 2008-04-28