sftp does not allow rename across file system

Damien Miller djm at mindrot.org
Fri Jan 18 11:48:48 EST 2013

On Thu, 17 Jan 2013, Ted Smith wrote:

> Hello:
> I got the error
> EXDEV (Invalid cross-device link)
> when renaming one file to another directory that is actually mounting another
> file system.

This is expected behaviour at the moment. The sftp protocol doesn't have
a mechanism to do cross-device rename (a misnomer, since it isn't renaming
but copying).

Fixing this will require a protocol extension. It isn't hard, but someone
needs to do the work.


More information about the openssh-unix-dev mailing list