cURL / Mailing Lists / curl-library / Single Mail

curl-library

RE: Ask for help to get sftp home directory

From: LIN Huangyang <Huangyang.Lin_at_alcatel-sbell.com.cn>
Date: Wed, 8 Dec 2010 09:31:16 +0800

 
> [Lin Huangyang] Do you mean that I have to explicitly add home
directory to sftp URL in order to be at right place once connected? If I
don't know the user home directory, is there other way to get to it when
connected? Thanks.
>
I think that the tilde ~ might help you out the way you wish...

If you connect to "sftp://server.blabla.com/~ you should arrive at the
home directory of the user you log in as. Alternatively, you use it with
"sftp://server.blabla.com/~<username>" to arrive at some other user's
home directory.

[Lin Huangyang] I tried and it works! Thank you very much:)

Regards
Lin Huangyang
8477-7571
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2010-12-08