Websites

SFTP

Turn on SFTP for a website so you can upload and edit its files with FileZilla, WinSCP, Cyberduck or sftp, locked into the website's own folder.

Last updated

Each website can have an SFTP account: its own Linux user signs in over SSH with a password, SSH keys or both, and sees only the website's files. Use it with an SFTP app such as FileZilla, WinSCP or Cyberduck, or the sftp command. Manage it on the website's SFTP tab.

Turn SFTP on

The SFTP tab of wordpress.vaultpanel.net: the SFTP access card marked Off with a Turn on button, a Password card with Generate and Save and turn on, and an SSH keys card with no keys yet and a box to add a public keyThe SFTP tab of wordpress.vaultpanel.net: the SFTP access card marked Off with a Turn on button, a Password card with Generate and Save and turn on, and an SSH keys card with no keys yet and a box to add a public key

Open the SFTP tab

Open the website and go to the SFTP tab.

Turn it on

In the SFTP access card, click Turn on. When the account has no password or key yet, the panel generates a strong password and shows it once. Copy it straight away.

You can also turn SFTP on by saving a password (Save and turn on) or adding a key (Add key and turn on).

Connect

The card shows what to enter in your SFTP app, each with a copy button:

FieldWhat it is
HostThe server's public address.
PortThe server's SSH port (22 unless you moved it).
UsernameThe website's name, which is also its Linux user.
Folder/<site name>, where the website's files are.
From a terminalThe sftp command to connect, such as sftp shop@203.0.113.10.

The change runs as a job; the card shows Applying… until it finishes.

What the account can do

  • It sees only /<site name>: no other website, not even their names. The agent locks the user into a root-owned folder onto which the website's home folder is mounted, and mounts it again after every reboot.
  • It has the same rights on the files as the website itself, so files it uploads belong to the website.
  • It gets SFTP only: no shell, no port forwarding and no tunnels.

The agent writes one SSH configuration file for every website with SFTP on the server, and tests it with sshd -t before SSH reloads.

Passwords and keys

The Password card sets a password of 12 to 128 characters. Type one, or click Generate, then Save and apply. The new password is shown once. Remove password takes it away; it is not available while SFTP is on and the account has no key.

The SSH keys card holds up to 20 public keys, one per person or computer, such as the contents of ~/.ssh/id_ed25519.pub. Paste a key under Add a public key and click Add key. Each key is listed with its comment and fingerprint; Remove stops that computer from signing in. The last key cannot be removed while SFTP is on and there is no password.

The panel keeps only a hash of the password, never the password itself.

Turn SFTP off

Click Turn off in the SFTP access card. The account can no longer sign in, and its folder, mount and keys are removed from the server. Deleting the website does the same.

Permissions

PermissionAllows
websites.read and files.readSeeing the SFTP tab and the connection details.
websites.manageTurning SFTP on and off, and changing the password and keys.
  • File manager to work with the files in the browser.
  • SSH for the server's SSH port and sign-in settings.
  • API reference for the SFTP endpoints.