# Manage your server files and connect over SFTP
You can reach your server's files in two ways:

- The **file manager** in the dashboard. It is quick for small edits and single files.
- **SFTP**, which suits big uploads, whole folders and programs on your own computer.

Both show the same files.

## Where your server files live

Your files are kept on the server's own storage. They stay 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 folder is the only thing you see after connecting, open it.

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

Files the server is writing to (worlds, save games, databases) can break 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 your 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 while you use the file manager, but leaving the page stops 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` file) 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, pack them into one `.zip`, upload it, then right-click it and pick **Extract**.
- **Open in new window** opens the file manager in its own window.

## Turn on SFTP and get the password

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

1. Click **Turn on**. The card shows **On** and lists the **Address**, **Port**, **Username** and **Password**.
2. Click **Change password**, then **Change password** again to confirm. The new password appears in the **Password** row.
3. Copy it now. It is shown only once. If you lose it, change it again to get a new one.

Your username is a short code made of letters and numbers, for example `bc875284`. Each server has its own, so saved logins for different servers do not mix.

Changing the password disconnects every SFTP program that used the old one. **Turn off** stops SFTP until you turn it on again. It is a good idea to keep 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 installed again. Do not pick **Start fresh**: it deletes everything.

## Connect with an SFTP program

Any SFTP program 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's **Address** and **Port**. Set **Logon Type** to **Normal**, then fill in **User** and **Password**.
4. Click **Connect**. Accept the server's key the first time.

**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**.

The card also has **Open in SFTP app**, which opens the address in the SFTP program your computer uses for `sftp://` links, and **Copy link**, which copies the same address. You still type the password yourself.

Cyberduck, Transmit and the `sftp` command line work the same way. To make the files show up as a drive in Windows File Explorer or as 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.

:::

## Move a server from another host

To bring a server over from another provider, use **Move a server from elsewhere** on the **Data Volume** page instead of downloading and uploading everything yourself. You need the old server's SFTP login.

1. Stop your server. The import writes straight into your server's files.
2. Click **New import** and fill in the old server's **Address**, **Port**, **Username** and **Password**.
3. In **Folder to copy**, leave `/` to copy everything, or type the folder you want.
4. Tick **Remove files the old server doesn't have** only if you want files that are missing on the old server deleted here, so both end up the same.
5. Click **Start import** and wait until it shows **Completed**. Then start the server.

## Frequently asked questions

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

Check that the **SFTP file transfer** card on the **Data Volume** page shows **On**, that you used the port from the card (not 22) and that the protocol is SFTP. If you changed 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>
