Troubleshoot a Dosya SFTP connection or transfer
Resolve SFTP host-key, password, key restriction, role, path, upload-close, size, quota, throttling, and interrupted-transfer failures.
Last reviewed
Identify whether the failure occurs before authentication, while listing a workspace, during byte transfer, or when the server closes the file. Dosya commits an SFTP upload at CLOSE, so a client progress bar reaching 100% does not prove the cloud file was accepted.

Steps
| Setting | Dosya value |
|---|---|
| Protocol | SFTP / SSH File Transfer Protocol |
| Host | sftp.dosya.dev |
| Port | 2222 |
| Username | API-key owner’s account email, with the same letter case |
| Authentication | Password |
| Password | Complete dos_… API key |
| Starting directory | / |
The gateway does not accept the Dosya account password, OAuth/MCP tokens, SSH public keys, FTP or FTPS. It does not provide an interactive shell. In OpenSSH, uppercase -P 2222 selects the port; lowercase -p has another meaning.
Create a dedicated key at Profile → API keys. It must permit SFTP, be pinned to an accessible workspace when restricted, and use Read only for listing/downloads or Full access when writes are required. An Upload only key cannot perform the listings most SFTP clients need. Folder-anchored keys and allowed-IP restrictions are refused by this gateway; use a workspace pin instead. Expiry, active-hour and explicit usage restrictions still apply.
Treat host identity separately from the password
On a first connection, compare the hostname, port, key type and fingerprint with a trusted value from Dosya support or your administrator over a separate channel. This guide does not publish a certified production fingerprint.
If the client reports REMOTE HOST IDENTIFICATION HAS CHANGED!, stop. Confirm a legitimate rotation before altering known_hosts. Replacing the API key cannot repair a host-key mismatch, and disabling host-key checking removes the protection the warning provides.
Repair authentication failures
Check the exact email, full key, SFTP protocol selection, workspace pin and expiry. Five incorrect password failures from one source address within the tracking window can ban that address for 15 minutes. Stop guessing, correct the credential, then wait for the ban to expire before a single retry.
The server drops an unauthenticated connection after 30 seconds by default. A transient API verification failure is not counted as a bad password, so capture the client time and retry once rather than rotating a known-good key immediately.
The SFTP successful-login and role-permission caches each last up to 60 seconds. API authorization has separate caches, so this interval is not a total revocation guarantee. After revoking a key or changing a role, verify refusal with a fresh connection and harmless operation after invalidation settles. An already-open channel does not prove a later operation can still commit.
Interpret path and permission messages
- Your role can’t use SFTP means the active workspace role lacks
access_sftp; ask an owner/admin to change that role. - access to that workspace is not permitted for this credential (status 3) indicates membership, workspace pin or role access does not cover that path.
- no such file or directory (status 2) can mean a misspelled listed name or a resource hidden from this credential. Begin again at
/and use a workspace name or slug returned there. - the parent directory does not exist or is not writable by this credential requires an existing destination and create/upload permission.
- this server supports open for reading or writing, not append or read-write means the client selected an unsupported append/resume mode.
The root lists permitted workspaces; it has no WebDAV All collection. Workspaces themselves cannot be created over SFTP. chmod and chown requests are acknowledged without changing Dosya permissions, and symbolic links are unsupported.
Diagnose upload completion
The current deployed ceiling is 352 MiB (369,098,752 bytes) per SFTP upload; a deployment can advertise a smaller active value. Workspace file policy, available cloud storage, key limits and role limits can reject a smaller file.
| Transfer result | What to do |
|---|---|
| write past the 352 MB per-file limit (or another shown value) | Use an appropriate Dosya upload method for the complete file. Writing at another offset cannot bypass the ceiling. |
| close failed: API 403 … | Read the attached permission/policy reason; no cloud commit occurred merely because WRITE succeeded. |
| close failed: API 429 (rate limited - back off and retry) … | Stop parallel transfers, wait, and retry the entire file after the applicable allowance or slot frees. |
| access to this workspace was revoked while the upload was in flight | Restore authorized membership/role or choose another permitted destination; do not resume the partial handle. |
Generic SSH_FX_FAILURE | Capture the operation and bounded server message. API 403 maps to permission denied, 404 to no-such-file, and other failures to status 4. |
Uploads are buffered during the SFTP session and committed on close. An empty upload currently creates no file. Interrupted writes have no durable server-side resume: avoid Resume, Append, reput, or put -a. Restart at offset zero, preferably under a fresh test name, because reopening does not load the previous prefix.
Replacing an existing path can add a Dosya file version and change its current bytes. rm and folder deletion move eligible content to Trash and revoke related share links. Trash retention is seven days for free owners and 30 days for other plans; permanent purge is irreversible.
Expected result
- Connect and run
pwdpluslsat/. - Enter the workspace name returned by the server and list an existing folder.
- Download a harmless known file and compare its bytes locally.
- If permitted, upload one non-empty uniquely named sample and wait for the final close result.
- Refresh Dosya Files, compare name and size, then download the cloud copy and verify its SHA-256.
Directory changes made through another protocol can lag until the configured directory cache expires; its default is 10 seconds. Wait for the applicable interval and list again before reporting a stale view.

For support, include client/version, host and port, operation, workspace/path with private names redacted, status/message, file size, time and timezone, and whether the failure happened at login, WRITE or CLOSE. Never attach the API key, password prompt contents or private file bytes.
Related guides
Was this helpful?
Loading helpfulness results…
Voting saves a necessary ballot cookie for up to 180 days so you can change your answer.
Questions and replies
Ask about the steps in this guide. Questions are reviewed before publication.
Keep account details, credentials and private files out of public questions. Use private support for those.
Loading questions…
Sign in to your Dosya account to ask a question.