Skip to content

Instantly share code, notes, and snippets.

@agea
Created February 1, 2024 15:06
Show Gist options
  • Save agea/f0ce1dc5240461f3a44c3e403df64d07 to your computer and use it in GitHub Desktop.
Save agea/f0ce1dc5240461f3a44c3e403df64d07 to your computer and use it in GitHub Desktop.
Cyberduck SFTP

To connect to an SFTP server using Cyberduck with a private key, you can follow these steps:

  1. Download and Install Cyberduck: If you haven't installed Cyberduck on your system, you can download it from the official website: Cyberduck.

  2. Open Cyberduck: Launch the Cyberduck application on your computer.

  3. Create a New Connection:

    • Click on the "Open Connection" button or navigate to "File" -> "Open Connection" to create a new connection.
  4. Choose SFTP (SSH File Transfer Protocol):

    • In the "Protocol" dropdown menu, select "SFTP (SSH File Transfer Protocol)."
  5. Fill in Connection Details:

    • Enter the following details:
      • Server: The hostname or IP address of the SFTP server.
      • Port: The default SFTP port is 22. If your server uses a different port, enter that information.
      • Username: Your SFTP username.
  6. Select SSH Private Key:

    • Under the "More Options" section, check the box that says "Use Public Key Authentication."
    • Click the "Choose..." button to select your private key file.
  7. Browse and Select Private Key:

    • Navigate to the location where your private key is stored and select the key file.
  8. Additional Authentication Options:

    • If your private key is passphrase-protected, enter the passphrase in the appropriate field.
    • You can also specify the Key Pair setting if needed.
  9. Save Connection or Connect:

    • If you plan to use this connection frequently, you can save it by giving it a name and clicking the "Add to Keychain" option (if you're on macOS) or "Add to Keychain / Password Manager" (if you're on Windows). This will save your credentials for future use.
    • Click the "Connect" button to establish the SFTP connection.
  10. Verify Connection:

    • If everything is configured correctly, Cyberduck should establish the SFTP connection using your private key.

That's it! You should now be connected to the SFTP server using Cyberduck with a private key. Ensure that you have the correct permissions set on your private key file for security reasons.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment