How to upload files to your VPS with SFTP

Print
  • 0

SFTP lets you upload and download files over SSH. On a VPS, it uses the same login details as normal SSH: the VPS IP address, SSH username, SSH password or key, and SSH port.

The default SSH/SFTP port is 22 unless you changed it. If SSH does not work, SFTP will not work either.

  1. Install an SFTP client such as FileZilla or WinSCP on your own computer.
  2. Create a connection using protocol SFTP, your VPS public IP, port 22, and your Linux SSH username.
  3. Connect to the VPS. If the client asks whether to trust the host key, accept it only if the IP address is correct.

    FileZilla Quickconnect SFTP connection details

  4. Upload files into the folder used by the software you are running. Do not upload files randomly into / unless a guide specifically tells you to.
PathCommon use
/homeUser folders, game files, and service accounts.
/optManually installed software.
/srvHosted services, depending on your setup.
/var/logLogs. Download from here when troubleshooting.

For the full FileZilla walkthrough, use How to connect to SFTP using FileZilla.

 

Common SFTP mistakes

  • Using FTP instead of SFTP. A VPS normally uses SFTP over SSH.
  • Uploading files to the wrong user folder, then starting the application from another folder.
  • Uploading archives but forgetting to extract them on the VPS.
  • Changing ownership or permissions in a way that prevents the service from reading the files.

If a file uploads but the application cannot see it, check the exact folder path in the application's config or startup command.


Was this answer helpful?

Related Articles

« Back

Follow us on Social Media

Stay in the loop! Follow our social media accounts and stay up-to-date with the latest news, announcements, tips & tricks and behind-the-scenes insights!