How to use SFTP with cPanel

This document details the information required to connect to your cPanel account via SFTP (SSH File Transfer Protocol or Secure File Transfer Protocol).

SFTP provides file access, transfer, and management tools that resemble FTP through a secure SSH connection.
SFTP is not FTP over SSH. Instead, it is an entirely separate protocol.

The use of SFTP is preferable to FTP when possible

Configure your SFTP client

Read your chosen client’s documentation for how to set up your SFTP client connection.

SFTP clients typically require the following information to connect to a server:

Hostname — The server’s hostname (for example, hostname.example.com).

SSH port number — The port number on which sshd listens (for example, 22).

Security — Whether the client combines FTP and SFTP functionality.

Username — The SSH username that the client uses to connect to the server. The username can be a valid cPanel account username or the root user.

Important: You cannot use an FTP account to connect via SFTP.

Password — The SSH user’s password.

Private Key — The SSH user’s private key. This is the absolute path to a private key on your local computer
(for example, c:\data\id_dsa).

Note: cPanel users can generate and download a private key via cPanel’s SSH Access interface
cPanel » Home » Security » SSH Access.

The root user can generate and download a private key via WHM’s "Manage root's SSH Keys" interface
WHM » Home » Security Center » Manage root’s SSH Keys.

Important:The SSH user’s private key is encrypted. The system may prompt you to enter the key’s password when you connect via SFTP

Supported SFTP clients

cPanel and WHM supports the following SFTP clients:

Cyberduck®
CoreFTP
WinSCP

Note: cPanel only support auto-configuration for these FTP clients. To use another client, manually configure the client. Click the "Instructions" link to view detailed instructions for your chosen client.

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

Uploading Files with FTP

Uploading files with an FTP program or client is one of the easiest ways to transfer files to...

Uploading Files with File Explorer in Windows

Uploading via FTP with File Explorer in Windows. To upload files via the integrated Microsoft...

How to create an FTP account In cPanel

You can create a FTP account in cPanel by following the steps listed here. Creating an FTP...

How to set up WinSCP FTP Client

Setting Up WinSCP FTP Client Downloading You can obtain WinSCP from the WinSCP download page....

How to set up Cyberduck FTP Client

Setting Up Cyberduck In Windows Cyberduck can be downloaded free of charge from...