SFTP transfers files over an encrypted SSH connection. With an SSH key you do not need to enter the server password, and unlike a password, a key cannot be guessed. SFTP works only with the cPanel user if shell (SSH) access is turned on for the account.
1Turn on shell access
Log in to the client portal at clients.area.lv (see the article “1.1. Logging in to the client portal”). In the “Your Active Products/Services” section, click “Manage” next to your hosting plan. In the “Shell (SSH) pieeja” section, click “Ieslēgt shell pieeju” (see the article “Shell (SSH) access to your hosting account”).

2Open the SSH keys
In the “Security” section of cPanel, open “SSH Access” and click “Manage SSH Keys”. Choose “Generate a New Key” (a new key) or “Import Key” (if you already have a key).
If you choose “Generate a New Key”, after creating it you must authorize the key (see step 4) and download the private key to your computer under “Private Keys” (“View/Download”).

3Add the public key
If you created the key on your computer, enter a name on the “Import Key” page and paste only the public key into “Paste the public key into the following text box:”. You do not need to put the private key on the server. Click “Import”.
It is safer to create the key on your computer (for example with ssh-keygen or PuTTYgen) – then the private key never reaches the server. If you use PuTTYgen, copy the public key from the “Public key for pasting into OpenSSH authorized_keys file” field.

4Authorize the key
In “Public Keys”, click “Manage” in the “Actions” column next to the key, then click “Authorize”. The “Authorization Status” column must show that the key is authorized – only then can you log in with it.

Connecting with FileZilla
| Field | Value |
|---|---|
| Protocol | SFTP - SSH File Transfer Protocol |
| Host | the server name, for example server54.areait.lv |
| Port | 22 |
| Logon Type | Key file (with an SSH key – select the private key file in the “Key file” field) or Normal (with the cPanel password) |
| User | your cPanel username |
Good to know
- Separate FTP users do not work with SFTP – only with FTP over TLS (see the article “FTP accounts – secure access to files”).
- Keep the private key only on your computer and protect it with a passphrase. Never send it to anyone.
- If a key is no longer needed or has been stolen, delete it in the cPanel “Manage SSH Keys” list.
- If you do not use SSH, turn off shell access (see the article “Shell (SSH) access to your hosting account”).
- Give each developer their own key. When you stop working with a developer, delete their key in the cPanel “Manage SSH Keys” list. If the server connects to a GitHub or GitLab repository with a key (deploy key), replace that key too, because the developer could have copied it (see the article “How to give a developer access safely”).
If you run into any difficulties, just write to us and we will help. support@area.lv