Public bug reported: The local directories created by sftp -r remotedir . are unreadable by anybody, so when it tries to create anything in them, it fails. Example:
$ sftp -r u...@host.com:foo foo u...@host.com's password: Connected to host.com. Fetching /foo/ to foo Retrieving /foo Retrieving /foo/www mkdir foo/www: Permission denied This is with Ubuntu 12.04, openssh-client 1:5.9p1-5ubuntu1 This is the second time I've ever used sftp. ** Affects: openssh (Ubuntu) Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to openssh in Ubuntu. https://bugs.launchpad.net/bugs/1030534 Title: "sftp -r remotedir ." creates directories with wrong permissions To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/openssh/+bug/1030534/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs