Re: Bug#611380: openssh-client: sftp's put -r fails with "Unable to canonicalise path"
----- Original Message -----
> From: David Jardine <email@example.com>
> To: firstname.lastname@example.org
> 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
>> tell from reading the man pages and searching online, the correct syntax
>> connected via sftp is:
>> put -r *
> I'm no expert myself, but shouldn't that be
> mput *
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
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.