Nettissimo · Help centre

Connecting securely via SFTP with an SSH key

Illustrated guide: generate and authorise an SSH key in cPanel, download the private key and configure WinSCP for SFTP.

Screenshots are illustrative; the current version may look different or use different labels.

SFTP transfers files securely and differs from plain FTP. On Nettissimo servers configured for key authentication, you need your cPanel credentials, private key and a client such as WinSCP. Terminal access is not required.

1. Sign in to cPanel using your hosting account username and password. These credentials do not replace the SFTP authentication key.

cPanel sign-in
cPanel sign-in

2. Search for ssh in cPanel and open SSH Access → Manage SSH Keys.

Search for SSH
Search for SSH
SSH Access
SSH Access

3. Select Generate a New Key.

Generate or import a key
Generate or import a key

Enter a recognisable name, such as sftp_laptop; it is not a password.

Key name
Key name

If you already have a key pair, you can import its public key.

4. Enter and confirm a long, unique private-key passphrase. You can use the cPanel password generator.

Password generator (example)
Password generator (example)
Key passphrase and confirmation
Key passphrase and confirmation

Keep the passphrase in a password manager; it is not the cPanel password. Do not reuse the example in screenshots. If you lose it, generate a new key pair.

5. Select RSA if available and prefer 4096 bits if selectable. The screenshot shows 2048 bits. Do not select DSA.

RSA key type and size
RSA key type and size

Generate the key and return to the key list.

Key generation confirmation
Key generation confirmation
Return to the key list
Return to the key list

6. Find the new, initially unauthorised key under Public Keys.

Unauthorised public key
Unauthorised public key

Choose Manage → Authorize and wait for confirmation.

Authorise the public key
Authorise the public key
Authorisation confirmation
Authorisation confirmation

Return to the list.

Return to the key list
Return to the key list

Only the public key is authorised on the server.

7. Under Private Keys select the matching name and View/Download.

Download the private key
Download the private key

Download and protect the private key; for WinSCP use .ppk conversion if available. Never upload the key to public_html or send it by email.

8. In WinSCP create an SFTP connection. For Host name use the hosted domain or server supplied by Nettissimo; for Port use the port stated in your customer account; for User name use the main cPanel username. Leave Password blank. In Advanced → SSH → Authentication choose Private key file and select the downloaded key. Convert OpenSSH to .ppk if prompted, keeping the key protected. On Login enter the passphrase if requested. Verify the server host key fingerprint before accepting it for the first time. The main web root is usually public_html. Additional FTP accounts cannot authenticate via SFTP.

9. If Permission denied (publickey) or Authentication failed appears, check public key authorisation, the private key file, passphrase, main username and assigned port. Contact Nettissimo if problems persist. Keep an encrypted backup of the private key; if you suspect compromise, revoke the public key and generate a new pair.

Keywords:SFTPSSHcPanelWinSCPprivate keyauthentication

Necessary (always active)

Google Analytics (optional)

Optional: website usage statistics provided by Google.

We store your choice for 180 days. You can change it anytime in the footer.