Knowledge base article

Connect via SFTP using SSH key authentication with FileZilla

It's easy to connect using SSH key authentication with FileZilla! This guide will teach you how

The following information is required to complete this guide:

  1. Your SFTP user (the user you login to the server with, if you're using shared hosting, the SFTP user is your cPanel username)
  2. Your server hostname or IP address (this can be either the server hostname, IP address or otherwise your domain name)
  3. A SSH key configured on your device (if you don't have a SSH key set up, please follow our guide Create a SSH key pair and configure your SSH key in cPanel before following the steps in this guide).

If you don't have requirements 1 and 2, those details were included in the Welcome to Serversaurus or IMPORTANT: Hosting Documentation email which you should find in your inbox, otherwise please request our support team to resend the documentation to you.

Let's get started!

  1. Open FileZilla and navigate to the File menu, select Site Manager
  2. From My Sites, select the site you're updating or otherwise create a New Site
  3. Set the following values in the settings:
    Protocol: SFTP - SSH File Transfer Protocol
    Host: Your server hostname or IP address
    Port: 22
    Logon Type: Key file
    User: Your SFTP username
    Key file: Use Browse to select your SSH private key or otherwise add the path to your SSH private key. For MacOS users, your private SSH key is typically stored at /Users/USERNAME/.ssh/id_rsa (replace USERNAME with your device username). For Windows users, your private SSH key is typically stored at C:UsersUSERNAME.sshd_rsaYou can compare your settings to the following visual example (remembering the Host, User and Key file path require your unique details):

Well done! You've set the required settings and can continue to select Connect.

Last updated November 30, 2023

Can't find what you're looking for?

Submit a question

  • Drop files here or
    Max. file size: 2 MB, Max. files: 3.
    • This field is for validation purposes and should be left unchanged.