Mount your SFTP files as a drive on Windows or Linux
You can make your server files appear in Windows File Explorer or in a regular Linux folder. Then you can open, drag and edit them with programs on your computer without downloading and uploading every file by hand.
The drive is not a copy: it shows what is on the server right now. If you delete a file from the drive, you also delete it from the server.
Back up important files before changing them
Do not edit worlds, databases or other files while the server is writing to them. For those changes, stop the server from the dashboard first and wait until it shows Stopped. Losing your internet connection while saving can also leave a file incomplete.
Before you start: get the four connection details
- Open your server in the dashboard.
- Pick Data Volume in the side menu.
- Find the SFTP file transfer card and keep the page open. If SFTP is off, click Turn on.
You need these four values:
| In this guide | Copy it from | Made-up example |
|---|---|---|
USERNAME | Username | bc875284 |
HOST | Address | sftp.example.net |
PORT | Port | 2022 |
| Password | Password | Never paste it into a command |
The password is shown only right after you click Change password. If you do not have it, change it to get a new one (see Turn on SFTP and get the password).
The top folder over SFTP (/) is the same folder the dashboard's Files page shows as /, so the steps below connect to /. On some servers the files are one level down, inside a server/ folder. If that folder is the only thing you see once connected, open it, or add server to the end of the path you use below.
Do not share the password
Anyone with these details can read, change or delete your server files. Do not include them in screenshots, public messages or commands you plan to share.
Choose your operating system:
Windows 10 or 11
Windows needs two free components to open an SFTP drive: WinFsp and SSHFS-Win. You only install them once.
Step 1: install SSHFS-Win
The easiest way is winget, which comes with current Windows 10 and 11:
- Open the Start menu.
- Type
Terminal. - Open Terminal or Windows PowerShell. You do not need to run it as administrator.
- Paste this command and press Enter:
Code
- Accept any installer prompts and wait for it to finish.
- Close every File Explorer window, then open it again.
If Windows says it cannot find winget, install the components by hand:
- Download and run the latest WinFsp installer with its default options.
- Download the latest SSHFS-Win installer. Choose the
x64file on almost every current computer. - Install it with the default options.
If the path is not recognized in the next step
Restart Windows after installing both components. Reopening File Explorer is usually enough, but a restart makes sure the WinFsp service is running.
Step 2: build the drive path
Windows does not use the sftp://... address shown in the dashboard here. It needs a special SSHFS-Win path:
Code
Replace USERNAME, HOST and PORT with the values from the dashboard without changing any other characters. With the made-up details in the table, it would be:
Code
Pay attention to these details:
- It starts with two backslashes:
\\. - There is
.raftersshfs. Thermakes the path start at the top folder (/). - Use
!, not:, between the host and the port. - It ends with the port number, with no
/or\after it. (If your files are inside aserver/folder, add\serverat the end.) - Do not put the password in the path.
Step 3: assign a drive letter
- Open File Explorer.
- Select This PC in the left sidebar.
- Open the three-dot menu in the toolbar and select Map network drive. On some versions it is under the Computer tab.
- Choose a free letter, such as
Z:. - Paste the path you just built into Folder.
- Tick Reconnect at sign-in if you want Windows to remember the drive.
- Select Finish.
- When Windows asks for credentials, enter the SFTP
USERNAMEand password from the dashboard. Do not use your email address or your Microsoft account password. - Tick Remember my credentials only on your own trusted computer.
- Select OK.
The first connection can take a few seconds. The new drive then appears under This PC. Open it: you should see your server's folders and files, not an empty folder.
A red X does not always mean it is broken
If Windows starts before the internet connection is up, a remembered drive can show a red X. Double-click it once you are online; it usually reconnects. Enter the SFTP password again if asked.
Another way: connect the drive with a command
You can do the same from Terminal. Replace the letter and path with your own:
Code
Windows asks for the password, so you do not have to put it in the command. /persistent:yes keeps the drive for later sign-ins.
Disconnect the drive on Windows
First close every editor, terminal or window that uses files on the drive. Then right-click the drive under This PC and select Disconnect.
You can also disconnect it from Terminal:
Code
This only removes the drive from your computer. It does not delete the files on the server.
Linux with a graphical file manager: the easiest option
If you only want to drag files now and then, your file manager probably supports SFTP already and you do not need to install anything. The connection shows in the sidebar as a network location, but it does not give a normal folder path that every program can use.
GNOME Files (Nautilus)
- Open Files.
- Select Other Locations.
- Find Connect to Server.
- Enter this address after replacing the three uppercase values:
Code
- Select Connect.
- Enter the SFTP password when asked.
- Save the password only if you trust this computer's user account and keyring.
KDE Dolphin
- Open Dolphin.
- Press Ctrl+L to edit the location bar.
- Paste the same
sftp://USERNAME@HOST:PORT/address and press Enter. - Enter the username and password if Dolphin asks for them.
- Right-click the sidebar and add the location to Places if you want a shortcut.
To disconnect, select the eject icon next to the location. Just closing the file manager window may leave the connection open. Disconnecting does not delete anything from the server.
Linux with SSHFS: a normal mount folder
Use this method if you want the files in a normal folder, such as /home/your-user/ServerFiles, that any program can open.
Step 1: install SSHFS
Open a terminal and install the package for your distribution:
Ubuntu or Debian
Code
Fedora
Code
Arch Linux
Code
If sudo asks for a password, it wants your computer's password, not the SFTP password.
Step 2: create the folder where the files will appear
This command creates a folder named ServerFiles in your home folder:
Code
You can choose another name, but then change $HOME/ServerFiles in every command below.
Step 3: mount the server files
Paste the following command after replacing USERNAME, HOST and PORT. Keep the separate lines as shown; the \ at the end of a line means the command continues:
Code
The first connection may ask something like this:
Code
Type the whole word yes and press Enter. Then paste the SFTP password from the dashboard and press Enter again.
Nothing appears while you type a password
This is normal: the terminal shows no dots, stars or letters while you enter a password. Paste it once and press Enter.
Now open the ServerFiles folder in your file manager. You can also check it from the terminal:
Code
The ServerAliveInterval and reconnect options help notice a lost connection and reconnect. Even so, if your internet connection drops while a file is open, close the file and open it again once the connection is back.
Unmount the folder on Linux
Do not delete the folder to disconnect. First close programs that use its files, then run:
Code
If your distribution says fusermount3 does not exist, use the older command name:
Code
The local folder stays in place, empty and ready for the next mount. To reconnect after restarting your computer, run the sshfs command from step 3 again.
Fix the most common problems
Connection timed out or Connection refused
- Copy the Address and Port again from the Data Volume page.
- Check that the SFTP file transfer card shows On.
- Do not use the game port or any other port; only the SFTP port from the card works.
- Check that your computer is online and that a firewall or workplace network is not blocking that port.
Permission denied or the password is asked again and again
- Copy the username and password again; they are case-sensitive.
- Make sure you use the SFTP details from Data Volume, not your dashboard login. If you changed the password, use the new one.
- If Windows saved an old password, open Credential Manager → Windows Credentials, remove the entry for the SFTP host and connect again.
The drive is empty or does not show the expected files
The right remote path is /, the same top folder the dashboard's Files page shows.
- On Windows, check that the path starts with
\\sshfs.r\and ends with the port. - On Linux, check that the source in the command ends in
:/. - If all you see is a
server/folder, your files are one level down: open it, or addserverto the end of the path (\serveron Windows,:/serveron Linux).
Windows cannot find the network name
- Check that WinFsp and SSHFS-Win are installed.
- Restart Windows once.
- Check the two
\at the start, the.rand the!before the port. - Do not paste an address starting with
sftp://into Map network drive.
Linux says mountpoint is not empty
Unmount any earlier connection before mounting again. Do not keep your own files inside $HOME/ServerFiles: they are hidden while SFTP is mounted and come back after it is unmounted.
Linux says target is busy while unmounting
A program is still using the folder. Close editors and file manager windows, and make sure no terminal is inside the folder:
Code
The drive freezes after the internet connection drops
Close the programs trying to use it, unmount or disconnect the drive, and connect it again. A save that was running when the network went down may have failed, so check that file before you carry on.
WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!
Do not skip this warning or simply delete the saved key. First check that you copied the right Address from Data Volume. If the address is right and the warning stays, contact our support before you enter your password. The server key may have changed for a good reason, but the warning is there to stop you from connecting to an impostor.
Frequently asked questions
Do the files also take up space on my computer?
Not as a full copy. Programs read and write the data over the internet when they need it. Some programs may keep their own local cache or temporary files.
Can I work without an internet connection?
No. This is a remote drive, not a sync tool. To work offline, download a copy first and upload it again when you are done, taking care not to overwrite newer changes.
Does the game server have to be running?
No. SFTP works while the game server is stopped. In fact, you should stop the server before changing worlds, databases or many files at once.
Why is it slower than my normal drive?
Every action travels to the server over an encrypted connection. Opening a folder with thousands of small files can be much slower than opening a local folder. For a very large one-off transfer, an SFTP program such as WinSCP or FileZilla may be easier.
Does disconnecting or unmounting delete anything?
No. It only removes the shortcut from your computer. Deleting files inside the drive while it is connected does delete them from the server.
