Log in to your site via SFTP

What you get: upload and download your site’s files, encrypted, over SFTP. There is no terminal: nothing can be run on the server, it is for files only.

Before starting

Two things that are confused all the time:

  • The FTP account does not sign in over SFTP. It is a different account.

  • The SSH keys screen of your account stores your public key, but on its own it gives you access to nothing. The panel itself warns you: “You can save your keys here, but until you create an SFTP access on one of your sites there is nowhere to use them”.

And one that costs a ticket every week: on a VPS the key does not copy itself. The same screen says it: “On a VPS the key is pasted when creating it, in its own form: it does not copy itself from here”. On the sites it does copy itself.

Steps

  1. Save your public key. Account → SSH keys → Add key menu.

    • Name — to recognize it in the list. For example, “laptop”.

    • Public key — the content of ~/.ssh/id_ed25519.pub (or id_rsa.pub). It is the one that ends in .pub: the other one is private and never leaves your computer.

  2. Create the access. On your site’s row, press SFTP → New SFTP user.

    • Site — which one it enters.

    • User and Password - minimum 8 characters.

  3. Create SFTP user. Your keys are copied to that account by themselves within a minute.

Each user enters directly into the folder of their site and without being able to leave it. You will not see the rest of the server, and that is on purpose.

There is no terminal: ssh user@server does not open a session and there are no tunnels or port forwarding. Only sftp and the programs that speak it, such as FileZilla, work.

Key or password. You sign in with your public key or with the password of the SFTP user. If you had a user from before SFTP existed, its old password no longer works: set a new one in the panel to sign in with a password (a key works as before). After 5 wrong passwords in 15 minutes, the account refuses passwords for 15 minutes; the key still gets in.

How to check it worked

On the SFTP screen you have the command already written, with your server and your port. Paste it into a terminal. If it gets in without asking for a password, the key is correctly set. Type pwd and you should see /web, your website’s folder.

For FileZilla, choose protocol SFTP, server sftp.tudominio.com, port 2222, and your SFTP user.

Common problems

“Permission denied (publickey)” and I just saved the key

Check that you are using the SFTP user and not the FTP one, and that you pasted the whole public key —it starts with ssh-ed25519 or ssh-rsa and ends with a comment— on a single line, with no line breaks.

I saved the key and in my VPS it keeps asking me for a password

This is expected. On a VPS the key is pasted into the VPS creation form; the SSH keys screen only feeds the SFTP accesses of the sites. If the VPS already exists, sign in through the console and add it by hand to its authorized keys file.

My program says “SFTP” and the FTP account does not connect

The FTP account only speaks FTP, on port 21. Create an SFTP user and connect to port 2222: that one does speak SFTP.

“This service allows sftp connections only” when running ssh

This is expected: the access is SFTP only and has no terminal. Use sftp or FileZilla. If you need to run commands on your site, write to us and we will look into it.

I sign in over SFTP with my usual password and it refuses me

The passwords of users from before SFTP are disabled on purpose. Sign in with your key, or set a new password in the panel (SFTP → edit the user) and wait a minute.

I log in but I can’t see my files, only strange folders

You are at the root of the site. Your website is usually one level deeper; go into the folder that contains the website and look there.

I want to execute something outside my folder and it won’t let me

It can’t be done, and it’s not a configuration error: each user is locked in the folder of their site so they don’t see others’ folders. If you really need something from the system, write to us and we’ll take a look.

There is an application from the catalog that says “Installed manually via SSH”

These are the ones that need Docker, Node or Composer and do not fit the one-click installer. They cannot be installed with an SFTP access, because there is no terminal: write to us and we will look into it. See Install an application with one click.

I have deleted my password from the computer

It cannot be recovered: we never had the private key. Generate a new pair of keys, save the new public key in SSH Keys and delete the old one from the list.