Troubleshoot an SFTP host-key warning
Pause at an SFTP host-key prompt, verify the server fingerprint through a trusted Dosya channel, and connect without bypassing SSH identity checks.
Last reviewed
An SSH host-key warning concerns the server’s identity, not your Dosya password or API key. Stop before authentication when the prompt is unexpected, names another host or port, or reports that a saved key changed. Rotating the dos_… credential cannot resolve a host-key mismatch.

The production connection target in the app is sftp.dosya.dev on port 2222. The server loads its host key at startup, but this repository does not contain a certified production fingerprint that this guide can safely publish. ssh-keyscan can collect the key presented on the same network path; by itself it does not prove that key belongs to Dosya.
Steps
- Cancel the connection without accepting the displayed key and without entering the API-key password. Preserve the exact hostname, port, key algorithm, fingerprint, client name, and time of the prompt.
- Confirm the saved site targets
sftp.dosya.dev:2222. A warning for port 22, a raw IP address, a proxy hostname, FTP, or FTPS is not the documented Dosya SFTP endpoint. - Determine whether this is a first connection, a new device with no trust record, or REMOTE HOST IDENTIFICATION HAS CHANGED! for an existing record. Treat the changed-key case as higher risk.
- Obtain the current fingerprint from Dosya support or an administrator through a separate trusted channel. Compare every fingerprint character and the key type; do not rely on the warning dialog as its own confirmation source.
- If the values match, accept the key in the original client and continue with password authentication. If they differ or no trusted value is available, keep the connection closed and send the captured non-secret details to support.
- After acceptance, connect with the exact account email and dedicated API key, list the intended workspace, and perform a read-only test. Never enable a permanent “accept any host key” or
StrictHostKeyChecking=noworkaround.

A first-use prompt can be normal because the client has no stored trust record. A changed-key warning can also follow a legitimate server rotation, but deleting the old record before independent verification removes the protection the warning provides. Network interception and connecting to the wrong saved host present the same symptom, so the prompt alone cannot distinguish them.
Do not paste API keys, saved-host files, or full debug logs into a public support request. Host, port, algorithm, fingerprint, timestamp, and client version are sufficient for identity verification.
Expected result
The client stores a host key only after an independently supplied fingerprint matches the displayed value, then authenticates to sftp.dosya.dev:2222. Any mismatch leaves the session closed and credentials unsent.
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.