cPanel's File Manager is fine for editing one file. For uploading a whole site, or running commands such as WP-CLI and Composer, you'll want SFTP and SSH.

What you need

  • Host: your domain, or the server hostname shown in cPanel under General Information.
  • Username: your cPanel username. It's on your service page in the client area, under Login details.
  • Password: your cPanel password (same place; use the copy button).
  • Port: shown in your welcome email. If you don't have it, ask us.

On shared plans, SSH access may need to be switched on for your account first. If the connection is refused, open a ticket asking for SSH access and include your IP address (search "what is my IP" on Google).

Upload files with SFTP

SFTP is file transfer over SSH: encrypted, unlike old plain FTP.

FileZilla (Windows, Mac, Linux)

  1. Download FileZilla Client from filezilla-project.org. Use the plain download, not the one bundled with "offers".
  2. File → Site Manager → New site.
  3. Protocol: SFTP. Host, port, username and password as above. Logon type: Normal.
  4. Connect. Accept the server's key the first time.

The left side is your computer; the right side is the server. Your website lives in public_html. Drag files across to upload.

WinSCP (Windows)

Similar to FileZilla: choose SFTP as the file protocol and fill in the same details. WinSCP can also open a PuTTY terminal from the same session.

Connect with SSH

Windows 10 and 11

Windows has SSH built in. Open Terminal or PowerShell and type:

ssh -p PORT username@yourdomain.in

Replace PORT and username. Type yes the first time, then your password (nothing appears as you type; that's normal).

Mac and Linux

Open Terminal and run the same command.

Once in, you're in your home directory. Useful first commands:

cd public_html        # go to your website folder
ls -la                # list files, including hidden ones
du -sh *              # see what's using disk space
wp core version       # WordPress version (WP-CLI), if WordPress is installed here

Use an SSH key instead of a password

Keys are more secure than passwords and save you typing.

  1. On your computer, create a key (press Enter to accept the defaults, and set a passphrase):

    ssh-keygen -t ed25519
    
  2. Show the public key and copy it:

    cat ~/.ssh/id_ed25519.pub
    

    On Windows: type $env:USERPROFILE\.ssh\id_ed25519.pub

  3. In cPanel, go to Security → SSH Access → Manage SSH Keys → Import Key. Paste the public key, give it a name, and save. Then click Manage next to it and Authorize.

Now ssh -p PORT username@yourdomain.in logs in with the key.

Never share or upload the file without .pub. That's your private key.

Common errors

  • Connection timed out: wrong port, or your IP isn't allowed yet. Check the port and ask us to allow your IP.
  • Permission denied: wrong username or password, or the key isn't authorised in cPanel.
  • Too many failed logins, then nothing works: the firewall has blocked your IP for a while. Wait 30 minutes or ask us to unblock it.

Stuck on a step?

Customers can open a ticket from the client area and an engineer will do it with you. Not a customer yet? Write to help@hostingdon.com or call +91 98002 55199.