Undocumented sftp put -r quirk: Couldn't canonicalize: No such file or directory

Damien Miller djm at mindrot.org
Thu Apr 17 13:45:48 EST 2014

On Wed, 16 Apr 2014, Parke wrote:

> Hi,
> As of OpenSSH 6.5 on Ubuntu 14.04 (package version 1:6.5p1-6), there
> appears to be an undocumented requirement for the sftp "put -r"
> command.  In order to "put -r foo", a remote directory named "foo"
> must already exist.

Could you file a bug for this at https://bugzilla.mindrot.org/ ?

IMO the directory should be created if it doesn't exist, just like
"cp -r" does.


More information about the openssh-unix-dev mailing list