# Manage your server files and connect over SFTP
You can reach your server's files two ways: the **file manager** in the dashboard, which is quick for small edits, and **SFTP**, which is better for big uploads, whole folders and working with programs on your computer. Both show the same files.

## Where your server files live

Your server's files sit on its data volume, which is kept when you stop, restart or resize the server.

- In the **file manager**, the top folder (`/`) is your server folder: you see the game's own files there, for example `server.properties`, `mods/` and `world/` on Minecraft, or `config/` and `txData/` on FiveM.
- Over **SFTP** you see the same files. On some servers they are one level down, inside a `server/` folder; if that is the only thing you see after connecting, open it.

:::warning{title="Stop the server before changing worlds and databases"}

Files the server is writing to (worlds, save games, databases) can be corrupted if you replace them while it runs. Stop the server first, wait until it shows **Stopped**, then make the change. Take a [backup](/game-servers/backups) before big changes.

:::

## Use the file manager

Open the server and pick **Files** in the side menu.

- **Upload files** and **New folder** are in the toolbar. You can also drag files from your computer onto the window. Uploads keep going in the background, but leaving the page cancels the ones still running.
- Right-click a file or folder for **Open**, **Download**, **Rename**, **Copy**, **Cut**, **Paste**, **Compress**, **Extract** and **Delete**.
- Double-click a text file (`server.properties`, `server.cfg`, a `.yml` or `.json` config) to edit it in the browser. Very large files show **This file is too large to open here.**; download them or use SFTP instead.
- To upload a lot of files, upload them as one `.zip` and right-click it → **Extract**.
- The pop-out button opens the file manager in its own window.

## Turn on SFTP and get the password

The SFTP details are on the server's **Data Volume** page (in the side menu), in the **SFTP file transfer** card.

1. Click **Enable SFTP**. The card switches to **Enabled** and shows the **Connection URL**, **Host**, **Port** and **Username**.
2. Click **Rotate password**, then **Rotate** to confirm. The new password appears in the **Password** field.
3. Copy it now. It is shown only once; if you lose it, rotate it again to get a new one.

Rotating the password signs out every SFTP session that is open. **Disable SFTP** turns the SFTP server off until you enable it again; turn it off when you do not need it.

If the card says **SFTP is not set up on this server yet**, open **Billing** at the top of the server page, click **Reinstall server**, choose **Keep my files** and click **Reinstall**. Your files and world are kept; only the server software is reinstalled. Do not pick **Start fresh**, which deletes everything.

## Connect with an SFTP client

Any SFTP client works. Use the four values from the card, and pick **SFTP** as the protocol, not FTP: plain FTP is not available.

**FileZilla**

1. Open **File** → **Site Manager** → **New site**.
2. Set **Protocol** to **SFTP - SSH File Transfer Protocol**.
3. Fill in **Host** and **Port** from the card. Set **Logon Type** to **Normal**, then fill in **User** and **Password**.
4. Click **Connect**. Accept the server's key the first time.

You can also paste the **Connection URL** (`sftp://zaroz@<host>:<port>`) into FileZilla's **Host** box in the quick-connect bar, then type the password.

**WinSCP**

1. In the **Login** window, set **File protocol** to **SFTP**.
2. Fill in **Host name**, **Port number**, **User name** and **Password** from the card.
3. Click **Login**.

Cyberduck, Transmit and the `sftp` command line work the same way. To make the files show up as a drive in Windows Explorer or a folder on Linux, see [Mount your SFTP files as a drive](/sftp/mount-as-drive).

:::danger{title="Keep the password private"}

Anyone with these details can read, change or delete your server files. Do not show them in screenshots or paste them in public chats.

:::

## Bring files from another host

To move a server from another provider, use **Import from another server** on the **Data Volume** page instead of downloading and uploading everything yourself:

1. Stop your server. The importer writes straight into the server's files.
2. Click **New import** and fill in the old host's SFTP details and the **Remote path** to copy.
3. Turn on **Mirror target contents** only if you want files that do not exist on the old host deleted here.
4. Click **Start import** and wait for it to finish, then start the server.

## Frequently asked questions

<details>
  <summary>My SFTP client says the connection was refused.</summary>

Check that SFTP shows **Enabled** on the **Data Volume** page, that you used the port from the card (not 22), and that the protocol is SFTP. If you rotated the password, use the new one.

</details>

<details>
  <summary>I uploaded a file but the server does not see it.</summary>

Check that it went into the right folder (for example `mods/` next to `server.properties`, not a `server/mods/` folder you created by mistake). Most games only read new files when they start, so restart the server.

</details>

<details>
  <summary>Can I get a copy of all my files?</summary>

Yes. Connect over SFTP and download the whole folder, or in the file manager select everything, **Compress** it and **Download** the archive.

</details>
