Skip to content

Generate new SSH Key Pair ​

To log in to your server with a key instead of a password, SCP / SSH and SFTP connections need an SSH key pair. If you don't have one yet, or want a separate key just for Dropshare, follow these steps.

Create the key pair ​

Open Terminal (in /Applications/Utilities) and run:

$ ssh-keygen -t ed25519 -f ~/.ssh/id_dropshare -C "Dropshare"
Generating public/private ed25519 key pair.
Enter passphrase for "/Users/username/.ssh/id_dropshare" (empty for no passphrase): [Enter your passphrase]
Enter same passphrase again: [Enter your passphrase again]
Your identification has been saved in /Users/username/.ssh/id_dropshare
Your public key has been saved in /Users/username/.ssh/id_dropshare.pub

This creates two files: the private key id_dropshare, which stays on your Mac, and the public key id_dropshare.pub, which goes on the server.

Ed25519 keys are short, fast and work with every current SSH server. If your server needs an RSA key, use ssh-keygen -t rsa -b 4096 -f ~/.ssh/id_dropshare instead. See the supported key types.

Copy the public key to the server ​

$ ssh-copy-id -i ~/.ssh/id_dropshare.pub [email protected]

Replace [email protected] with your SSH login. Add -p 2222 if your server doesn't use port 22. ssh-copy-id adds the key to ~/.ssh/authorized_keys on the server.

Set up the key in Dropshare ​

Open the Dropshare preferences, go to the Connections tab and open your SCP or SFTP connection. Click the SSH Private Key button and choose id_dropshare (the file without .pub). The file picker opens in ~/.ssh and shows hidden files. If you set a passphrase, enter it in the Password field.

Press Test Connection to check that everything works.