How to Configure Your SFTP Client ?


This document provides the information 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. However, SFTP is not merely FTP over SSH. Instead, it is an entirely separate protocol.

For more information about SFTP, read the SFTP Wikipedia article.

Configure your SFTP client

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

  • Hostname — The server’s hostname (for example,

  • 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.


    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).


    You may see a warning that the server’s host key is unknown. To ensure that this message does not display again, accept the key and store it on your local computer.



    • 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).
  • FTP Client, Configure FTP, FTP
  • 103 Users Found This Useful
Was this answer helpful?

Related Articles

How to Deny FTP Access ?

Overview If the /etc/ftpusers file exists on your server, cPanel & WHM denies FTP access to...

How to Edit FTP Server Configuration from the Command Line?

Overview This document explains how to manually edit the FTP server’s configuration from the...

How to Enable FTP Passive Mode ?

Overview This document explains how to use the active or passive mode to connect to a File...

How to Restore Missing FTP Interfaces in cPanel ?

Overview Warning: This document describes an unsupported workaround. We do not guarantee that...

Passive FTP and NAT Configuration Temporary Workaround ?

Overview cPanel & WHM’s implementation of PureFTP and ProFTPd causes an issue on...