# An SFTP upload fails in the top folder

UrbeStack sysadmin note about OpenSSH. Last updated 30 Nov 2026.

An SFTP upload to the top folder, `/`, fails with `Permission denied`. OpenSSH requires root to own that folder, so upload to `/files`, where the customer's files live.

## Symptoms

An upload to `/` fails with the following error.

```output
dest open "/x.txt": Permission denied
```

The same upload works in `/files`.

## Cause

SFTP shows the customer `/home/USER` as `/`. Root owns that folder, as `sshd` requires.

The customer's files are in `/files`, where the SFTP session starts.

## Resolution

Upload to `/files` or a folder under it. The customer's sites are under `/files/web`.

Set the remote folder in the SFTP client to `/files` so the client opens there.

Run this command to open an SFTP session directly in `/files`.

```
sftp USER@server.example.net:/files/
```

If the problem persists after you follow this note, you can [open a support ticket](https://support.urbestack.com/new?type=support). Including the output of the commands you ran helps support diagnose the problem.
