Re: Bug#611380: openssh-client: sftp's put -r fails with "Unable to canonicalise path"

2011-06-09 Thread Nico Kadel-Garcia
On Thu, Jun 9, 2011 at 8:41 PM, Steven Sciame  wrote:
>
>
>
>
>
>
>>
>>From: Selim T. Erdogan 
>>To: debian-user@lists.debian.org
>>Sent: Friday, May 20, 2011 8:54 PM
>>Subject: Re: Re: Bug#611380: openssh-client: sftp's put -r fails with "Unable 
>>to canonicalise path"
>>
>>Clive Standbridge, 19.05.2011 tarihinde şöyle yazmış:
>>> > >
>>> > >  I am attempting to upload files onto my webserver using sftp.  As
>>> > >  far as I can
>>> > >  tell from reading the man pages and searching online, the correct
>>> > >  syntax once
>>> > >  connected via sftp is:
>>> > >
>>> > >  put -r *
>>> >
>>> > I'm no expert myself, but shouldn't that be
>>> >
>>> >    mput *
>>>
>>> mput doesn't seem to be an sftp command. Maybe you were thinking of
>>> lftp? But lftp's mput command doesn't appear to do recursion. lftp has
>>> a reverse mirror command "mirror -R" which looks like it will do the
>>> job. You can connect to an sftp server with lftp using a command like
>>> lftp sftp://username@host/path/to/dir
>>>
>>> Another alternative would be to use rsync e.g.
>>> rsync -aiz files username@host:/path/to/dir
>>
>>Yet another alternative might be scp instead of sftp.  I use "scp -pr"
>>often.
>>
>>
>
>
> Thank you for this.  scp works!   I really like the functionality of sftp 
> since I can connect, search for what I want mv things around and then copy 
> what I want.  Hopefully it will be fixed in 6.0.2? but until then thank you 
> for scp!

While sftp and scp have uses for modest upload and downloads, both
suffer from non-specific handling of symlinks, and scp in particular
suffers from its lack of a chroot cage to isolate client access to the
server to simited areas. The result is that a recursive upload, or
download, that includes a recursive symlink can be a *disaster*. They
also suffer from confusing specifcaitons of the associated "TIMEZONE"
of uploads and downloads causing enormous confusion for international
clients, at the worst possible moments.

This sort of thing is why I've encouraged people to use WebDAV over
HTTPS, which is built into Windows network neighborhood, works well
with cadaver and ltfp for command line access, and does a better job
of publishing datestamps for the clients.


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/banlktikfes-aewynefwkho-a673zlo5...@mail.gmail.com



Re: Bug#611380: openssh-client: sftp's put -r fails with "Unable to canonicalise path"

2011-06-09 Thread Steven Sciame
 





>
>From: Selim T. Erdogan 
>To: debian-user@lists.debian.org
>Sent: Friday, May 20, 2011 8:54 PM
>Subject: Re: Re: Bug#611380: openssh-client: sftp's put -r fails with "Unable 
>to canonicalise path"
>
>Clive Standbridge, 19.05.2011 tarihinde şöyle yazmış:
>> > >  
>> > >  I am attempting to upload files onto my webserver using sftp.  As
>> > >  far as I can 
>> > >  tell from reading the man pages and searching online, the correct
>> > >  syntax once 
>> > >  connected via sftp is:
>> > >  
>> > >  put -r * 
>> > 
>> > I'm no expert myself, but shouldn't that be
>> > 
>> >    mput *
>> 
>> mput doesn't seem to be an sftp command. Maybe you were thinking of
>> lftp? But lftp's mput command doesn't appear to do recursion. lftp has
>> a reverse mirror command "mirror -R" which looks like it will do the
>> job. You can connect to an sftp server with lftp using a command like
>> lftp sftp://username@host/path/to/dir
>> 
>> Another alternative would be to use rsync e.g.
>> rsync -aiz files username@host:/path/to/dir
>
>Yet another alternative might be scp instead of sftp.  I use "scp -pr" 
>often.
>
>


Thank you for this.  scp works!   I really like the functionality of sftp since 
I can connect, search for what I want mv things around and then copy what I 
want.  Hopefully it will be fixed in 6.0.2? but until then thank you for scp!


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/434921.70691...@web111707.mail.gq1.yahoo.com



Re: Re: Bug#611380: openssh-client: sftp's put -r fails with "Unable to canonicalise path"

2011-05-20 Thread Selim T. Erdogan
Clive Standbridge, 19.05.2011 tarihinde şöyle yazmış:
> > >  
> > >  I am attempting to upload files onto my webserver using sftp.  As
> > >  far as I can 
> > >  tell from reading the man pages and searching online, the correct
> > >  syntax once 
> > >  connected via sftp is:
> > >  
> > >  put -r * 
> > 
> > I'm no expert myself, but shouldn't that be
> > 
> >mput *
> 
> mput doesn't seem to be an sftp command. Maybe you were thinking of
> lftp? But lftp's mput command doesn't appear to do recursion. lftp has
> a reverse mirror command "mirror -R" which looks like it will do the
> job. You can connect to an sftp server with lftp using a command like
> lftp sftp://username@host/path/to/dir
> 
> Another alternative would be to use rsync e.g.
> rsync -aiz files username@host:/path/to/dir

Yet another alternative might be scp instead of sftp.  I use "scp -pr" 
often.


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20110521015402.ga5...@cs.utexas.edu



Re: Re: Bug#611380: openssh-client: sftp's put -r fails with "Unable to canonicalise path"

2011-05-19 Thread Clive Standbridge
> >  
> >  I am attempting to upload files onto my webserver using sftp.  As
> >  far as I can 
> >  tell from reading the man pages and searching online, the correct
> >  syntax once 
> >  connected via sftp is:
> >  
> >  put -r * 
> 
> I'm no expert myself, but shouldn't that be
> 
>mput *

mput doesn't seem to be an sftp command. Maybe you were thinking of
lftp? But lftp's mput command doesn't appear to do recursion. lftp has
a reverse mirror command "mirror -R" which looks like it will do the
job. You can connect to an sftp server with lftp using a command like
lftp sftp://username@host/path/to/dir

Another alternative would be to use rsync e.g.
rsync -aiz files username@host:/path/to/dir

-- 
Cheers,
Clive


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20110519213653.ga10...@rimmer.esmertec.com



Re: Bug#611380: openssh-client: sftp's put -r fails with "Unable to canonicalise path"

2011-05-19 Thread Steven Sciame


 



- Original Message -
> From: David Jardine 
> To: debian-user@lists.debian.org
> Cc: 
> Sent: Thursday, May 19, 2011 3:57 PM
> Subject: Re: Bug#611380: openssh-client: sftp's put -r fails with "Unable to 
> canonicalise path"
> 
> On Thu, May 19, 2011 at 01:35:22PM -0700, Steven Sciame wrote:
>> 
>>   
>>   I am attempting to upload files onto my webserver using sftp.  As far as I 
> can 
>>   tell from reading the man pages and searching online, the correct syntax 
> once 
>>   connected via sftp is:
>>   
>>   put -r * 
> 
> I'm no expert myself, but shouldn't that be
> 
>    mput *
> 
> Cheers,
> David
> 
> 

Hi David,

Thank you for the reply.  That is what I thought it should be, so I started 
with mput, just like I would have done with regular ftp.  sftp responded with, 
"Command not found"  I checked the man pages and mput is not listed as a 
command.
I then found this http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=428082   But 
this was back in 2007.  

The way the man page is written for the current sftp makes it sound like put 
can be used for multiple files since glob is ok to use. 


put [-Ppr] local-path [remote-path]
Upload local-path and store it on the remote machine.  If the
remote path name is not specified, it is given the same name it
has on the local machine. local-path may contain glob(3)
characters and may match multiple files.  If it does and
remote-path is specified, then remote-path must specify a
directory.

If ether the -P or -p flag is specified, then full file
permissions and access times are copied too.

If the -r flag is specified then directories will be copied
recursively.  Note that sftp does not follow symbolic links when
performing recursive transfers.

 Plus when I type:  put -r *   two files get transferred and the rest, which 
are directories, do not.  The -r is supposed to copy the directories 
recursively.  That is when I get the cononicalise error.  

I am new at this so I could be wrong.  I thought that sftp was appropriate to 
use for this purpose(uploading files to a web server).  I could be wrong about 
that too...

Any help would be much appreciated.

-Steven


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/895684.80974...@web111717.mail.gq1.yahoo.com



Re: Bug#611380: openssh-client: sftp's put -r fails with "Unable to canonicalise path"

2011-05-19 Thread David Jardine
On Thu, May 19, 2011 at 01:35:22PM -0700, Steven Sciame wrote:
> 
>  
>  I am attempting to upload files onto my webserver using sftp.  As far as I 
> can 
>  tell from reading the man pages and searching online, the correct syntax 
> once 
>  connected via sftp is:
>  
>  put -r * 

I'm no expert myself, but shouldn't that be

   mput *

Cheers,
David


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20110519205743.GA2209@gennes.augarten