To connect to an SFTP server using Cyberduck with a private key, you can follow these steps:
-
Download and Install Cyberduck: If you haven't installed Cyberduck on your system, you can download it from the official website: Cyberduck.
-
Open Cyberduck: Launch the Cyberduck application on your computer.
-
Create a New Connection:
- Click on the "Open Connection" button or navigate to "File" -> "Open Connection" to create a new connection.
-
Choose SFTP (SSH File Transfer Protocol):
- In the "Protocol" dropdown menu, select "SFTP (SSH File Transfer Protocol)."
-
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.
- Enter the following details:
-
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.
-
Browse and Select Private Key:
- Navigate to the location where your private key is stored and select the key file.
-
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.
-
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.
-
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.