Tutorials

Transfer Files with SFTP

SFTP moves files encrypted over SSH. It uses the same user, port and key as your SSH login. We don't offer plain FTP: it sends passwords and files across the network unencrypted.

No key set up yet? Start with Connect with SSH. It also shows how to add the key in the dashboard.

No app needed: files in the browser

Open your VPS or webspace in the dashboard and click Files. You can upload, download, edit, rename and delete there without installing anything. For a few files that's the fastest way. More in SFTP File Browser.

The settings for any app

VPS (Linux) Webspace
Protocol SFTP SFTP
Host your VPS's IPv4 address your webspace's address, e.g. ws-ab123.sitequest.eu
Port 22 or your custom SSH port 22
User root e.g. ws_ab123
Login key file, or the root password while password login is on key file only
Target folder wherever your app lives, e.g. /var/www public_html for your website

User and host are in the dashboard's SSH area under Connection → Command: everything before the @ is the user, everything after it the host.

On a webspace you start in your home directory and can't go above it. Anything visitors of your website should see goes into public_html.

In the terminal: sftp and scp

Both commands already ship with Windows 10 and 11, macOS and Linux.

Copy a file to your webspace:

scp index.html ws_ab123@ws-ab123.sitequest.eu:public_html/

Copy a whole folder to your VPS:

scp -r ./my-app root@203.0.113.10:/var/www/

With a custom port, scp takes a capital -P:

scp -P 2222 backup.tar.gz root@203.0.113.10:/root/

Interactive with sftp:

sftp ws_ab123@ws-ab123.sitequest.eu
sftp> cd public_html
sftp> put index.html
sftp> get logs.zip
sftp> exit

If you added an entry to ~/.ssh/config, the short name is enough: sftp my-webspace.

With an app: which one?

App System Price Good to know
WinSCP Windows free our pick for Windows, no bundled offers in the installer
Cyberduck macOS, Windows free, asks for a donation reads OpenSSH keys and ~/.ssh/config directly
FileZilla Windows, macOS, Linux free the default Windows download contains ad offers, see below

Download every app from its maker's site only, never from download portals.

WinSCP (Windows)

Download: winscp.net

  1. Start WinSCP. The login window opens right away.
  2. Set the file protocol to SFTP and enter host, port and user from the table above.
  3. Click Advanced… → SSH → Authentication and pick your key under Private key file.
  4. If your key is in OpenSSH format, e.g. id_ed25519, WinSCP offers to convert it to PuTTY's .ppk format. Accept and save the .ppk file next to the original.
  5. OK, then Save so you can open the connection with one click later, then Login.

Cyberduck (macOS and Windows)

Download: cyberduck.io

  1. Click Open Connection.
  2. Choose SFTP (SSH File Transfer Protocol) at the top.
  3. Enter server, port and username from the table above.
  4. Under SSH Private Key, pick your private key, e.g. id_ed25519.
  5. Click Connect.

Cyberduck takes OpenSSH keys as they are. It can't read Ed25519 keys in PuTTY's .ppk format, so use the OpenSSH file for those.

FileZilla

FileZilla's default Windows download contains additional software offers. Microsoft Defender flags that installer as a potentially unwanted application. Below the download button on filezilla-project.org, Show additional download options leads to the installer without offers. Use that one. If you do run the regular installer, decline every offer.

  1. File → Site Manager → New site.
  2. Protocol: SFTP – SSH File Transfer Protocol.
  3. Enter host and port from the table above.
  4. Logon Type: Key file. For a VPS with the root password: Normal.
  5. Enter the User and pick your private key under Key file. If FileZilla offers to convert it, accept.
  6. Connect.

Common errors

Login refused on a webspace: Check that the app really uses SFTP, not FTP, and that the logon type is set to key file. A webspace has no password.

Permission denied when uploading to a webspace: You're writing outside your home directory. Upload into public_html or a folder below it.

The website still shows the old file: Did you upload to the right folder? On a webspace that's public_html, not the home directory itself.

The key isn't accepted: Most graphical apps want the private key, not the .pub file. Pick the file without an extension, or the .ppk file.

More login errors are covered in Connect with SSH under "Common errors".

Next steps