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.
SFTP clients typically require the following information to connect to a server:
1. Hostname — The server’s hostname (for example, hostname.example.com).
2. SSH port number — The port number on which sshd listens (for example, 22).
3. Security — Whether the client combines FTP and SFTP functionality.
4. 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.
1. Password — The SSH user’s password.
2. 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).
Important: 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.
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).