> ## Documentation Index
> Fetch the complete documentation index at: https://docs.directgvr.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Use SFTP for uploads

> Add an SFTP entry to your CDN configuration file and deploy over SFTP.

You can upload releases over SFTP by adding an SFTP entry to the CDN configuration file you pass with `--console_config`. For the file format, see [Configure the scripts for your server or CDN](https://docs.directgvr.com/release-automation/configure-server-or-cdn.md).

## Add the SFTP entry

1. In your CDN configuration file, add an `sftp` section.
2. Name the entry after your upload host name only, with no folders.
3. Set `user` and `password` to your SFTP upload account.

```json theme={null}
{
  "sftp": {
    "upload.example-cdn.net": {
      "user": "<username>",
      "password": "<password>"
    }
  }
}
```

> [!TIP]
>
> If uploads fail and your host name has uppercase letters, write it in lowercase.

If your server needs a specific host key algorithm, set `serverHostKey`:

```json theme={null}
{
  "sftp": {
    "upload.example-cdn.net": {
      "user": "<username>",
      "password": "<password>",
      "serverHostKey": "ecdsa-sha2-nistp256"
    }
  }
}
```

For every SFTP option, see [Deployment Console tools](https://docs.directgvr.com/reference/deployment-console-tools.md).

## Deploy over SFTP

Use an SFTP URL for `sync_directory` and pass your CDN configuration file:

```bash theme={null}
release_deploy.py --sync_directory=sftp://upload.example-cdn.net/myapplication/ --console_config=c:/path/to/sftp_config.json --config=c:/path/to/mygame_deployment.json
```

Use the same `sync_directory` with the other scripts, for example when you promote releases or create update paths.

## Related

* [Deploy a release](https://docs.directgvr.com/release-automation/deploy-a-release.md)
* [Configure the scripts for your server or CDN](https://docs.directgvr.com/release-automation/configure-server-or-cdn.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.