Skip to content

SFTP ​

SFTP (SSH File Transfer Protocol) transfers files between your computer and the server over an SSH connection. All data, including your login details, is encrypted. To use SFTP you need an SFTP client such as WinSCP (Windows) or FileZilla (Windows, macOS, Linux).

Before you start ​

  • SSH key: by default the server only accepts SSH/SFTP logins with an SSH key, not a password (you can change this in the SSH menu). Create an SSH key (see SSH Keys) and add its public key to the server in the server's SSH Keys menu. WinSCP and FileZilla use the private key in PuTTY format (.ppk).
  • User: the user you log in with must have Can Access SSH/SFTP turned on in the System Users menu (see System Users). The default user is flashpanel.
  • Server details: the server IP address and SSH port (22 by default).

Using WinSCP ​

  1. Download and install WinSCP from winscp.net.
  2. Open WinSCP and select New Site in the Login window.
  3. Fill in:
    • File protocol: SFTP
    • Host name: the server IP
    • Port number: the SSH port (22 by default)
    • User name: the system user, e.g. flashpanel
    • Password: leave empty when logging in with an SSH key
  4. Click Advanced..., then select SSH > Authentication on the left. In Private key file, click ... and choose your .ppk private key file. Click OK.
  5. Click Save to keep the settings for next time, then click Login.
  6. Once connected, drag and drop files between your computer (left) and the server (right) to upload or download them.

Using FileZilla ​

  1. Download and install FileZilla Client from filezilla-project.org.
  2. Open File > Site Manager, click New site and give it a name.
  3. In the General tab, fill in:
    • Protocol: SFTP - SSH File Transfer Protocol
    • Host: the server IP; Port: the SSH port (22 by default)
    • Logon Type: Key file
    • User: the system user, e.g. flashpanel
    • Key file: click Browse... and choose your .ppk private key file
  4. Click Connect.

TIP

If you have enabled password login in the SSH menu, you can skip the key: in WinSCP fill in Password; in FileZilla set Logon Type to Normal and fill in Password.