SFTP Permission Denied: Fix Upload, Download and Error #3
If SFTP login succeeds but a file cannot be uploaded, the connection is usually working. The target directory ownership, write permission, quota or SFTP policy is refusing the operation.

Separate login errors from file-operation errors
If the password or key is rejected, the user has not authenticated. If directory listing works but upload, delete or rename is denied, authentication succeeded and the file system or SFTP policy blocked that operation.
Record the exact operation and remote path. If the same account can write to another directory, the problem is probably specific to the destination rather than the whole account.
Common causes of SFTP permission denied
The user or group cannot create a new entry in the target directory.
A file or directory belongs to another account; checking only the numeric mode is not enough.
The SFTP jail root may intentionally be non-writable and require a separate writable child directory.
The file system may be read-only, the disk full or the user quota exhausted.
An SFTP-only policy may block delete, rename or selected file-name patterns.
Client-side checks
- 1Verify the remote path
A displayed path can differ from the real server path inside a chroot; confirm the current remote directory.
- 2Try a simple test file
A small file with a safe name separates permission problems from size and naming rules.
- 3Test an allowed directory
Compare with a known upload or home subdirectory assigned to the account.
- 4Inspect the connection log
Identify the failed SFTP request and the status message returned by the server.
Check ownership and permissions on Linux
Creating a file requires appropriate access on the parent directory, not just the file itself. Check the user’s effective groups and every directory component along the path.
Applying 777 can hide the actual ownership problem and let unrelated users change data. Set the intended owner and group, then grant only the permissions required by the workflow.
id user
ls -ld /srv/sftp /srv/sftp/upload
namei -l /srv/sftp/uploadWhy might ChrootDirectory be non-writable?
OpenSSH applies strict ownership and writability rules to a chroot jail root. A common safe layout uses a root-owned chroot directory with a separate upload directory beneath it that the SFTP user can write to.
Making the jail root writable by the user can cause login to fail entirely. Create a writable child directory instead of weakening the chroot root and grant access only to the intended account.
Broad permissions damage account isolation and data integrity. Use the narrowest ownership, group and mode that support the required operation.
Server-side checklist
Check free space, inode usage and the quota assigned to the user.
Determine whether storage was remounted read-only after a file-system error.
Review Subsystem, Match, ForceCommand and ChrootDirectory rules.
Inspect SELinux, AppArmor or Windows ACL restrictions when applicable.
Use logs to determine whether the denial came from the file system, policy or SFTP subsystem.
SFTP put, get and error #3: identify the failed operation
A permission message can refer to either end of the transfer. With put, the client must read the local source and the server must create or replace the remote destination. With get, the server must read the remote source and the client must write the local destination. Check the full error line before changing remote permissions.
SFTP status 3 is SSH_FX_PERMISSION_DENIED. It indicates that the requested operation was denied, but it does not identify the exact permission rule. Client interfaces may display it as Error #3 or Permission denied. It is separate from an SSH authentication failure before the SFTP session opens.
| Operation | Local check | Remote check |
|---|---|---|
| put new file | Source exists and is readable | Destination parent permits write and traversal |
| put existing file | Source is readable | Existing file can be written; client may also need rename permission |
| get file | Destination directory permits creation | Source is readable and parent directories permit traversal |
| rename/delete | Check the selected remote path | Parent-directory permissions and server policy |
Linux ownership versus Windows NTFS permissions
On Linux, inspect the effective user, group membership, directory modes and any ACL. If those allow the action, check SELinux or AppArmor, a read-only mount and SFTP request restrictions. A read-only SFTP service can reject uploads even when the underlying directory is writable.
On Windows OpenSSH, check the account identity and effective NTFS permissions on the destination and its parents. Do not apply Linux chmod commands as a general NTFS fix. Inspect with icacls and use the Windows security interface to review inherited and explicit rules before changing them.
Some clients upload to a temporary name and rename it after transfer. If bytes transfer successfully but the final save fails, inspect rename permission and the target file rather than repeating authentication steps.
whoami
icacls "C:\SftpData\upload"Put the guide into practice.
Review the related Varkuna product or open its detailed user guide.