Search Our Database

Connect via SFTP using SSH Key Authentication with FileZilla

Last updated on |

Introduction

Secure File Transfer Protocol (SFTP) is a trusted method for securely transferring files between a local machine and a remote server. FileZilla, a widely-used open-source FTP client, supports SFTP connections using SSH key authentication. This guide walks you through the process of configuring FileZilla to connect using a private SSH key.

Prerequisites

  • FileZilla installed on your system
  • A valid private SSH key file
  • An SFTP-enabled server configured for SSH key authentication.
  • Your server’s IP address or hostname, port number, and SSH username.

Step-by-Step Guide

Step 1: Configure Site Manager in FileZilla
  1. Launch FileZilla.
  2. Go to  File > Site Manager

    Open Site Manager in FileZilla
  3. Click New Site and name it (e.g., My SFTP Server).

    Create a new SFTP site in FileZilla
  4. In the right pane, enter the following details:
    • Protocol:  SFTP – SSH File Transfer Protocol
    • Host:  Your server hostname or IP address
    • Port:  22   (or your custom SFTP port)
    • Logon Type: Key File
    • User: Your SSH username
    • Key file: Click Browse and select your private key file.

      Select SSH Key File in FileZilla
Step 2: Connect to the Server
  1. Click Connect to initiate the SFTP session.
  2. When prompted, review and accept the server’s host key.
  3. If authentication is successful, the connection will be established.

    FileZilla successful connection
Step 3: Verify Successful Connection
  1. After connecting, you will see your local files on the left and the remote server files on the right.
  2. You can now navigate directories, upload, and download files.
  3. This confirms that the SFTP connection via SSH key is working properly.

    Successful SFTP file browser in FileZilla

Conclusion

Connecting via SFTP using SSH key authentication in FileZilla enhances your security and removes the need for password-based logins. Always keep your private key secure and verify that your server’s SSH configuration is correctly set up.

For further assistance, please contact our support team at support@ipserverone.com.

Article posted on 02 May 2025 by Author