Dropshare User Guide

Search for answers to your questions by entering keywords below, or look through our knowledge base.

How to create a new SSH key pair for SCP over SSH upload?

In order to use public key authentication with Dropshare for Mac and SCP over SSH upload, an SSH key pair is required. Follow these steps in case you don't know how to create a key pair.

Open Terminal.app

Terminal.app is located at /Applications/Utilities/Terminal.app.

Check for exisitng SSH keys

$ cd ~/.ssh
$ ls
# This command shows a list of all files available in the ~/.ssh directory

Generate new SSH key pair

Follow the explainations to generate a new SSH key pair.

Commands in yellow require your attention.
$ ssh-keygen -t rsa
Generating public/private rsa key pair.
Enter file in which to save the key (/Users/username/.ssh/id_rsa): [Enter "id_dropshare" e.g.]
Enter passphrase (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.

Upload SSH key pair to server

The following command will upload your public key generated above to the server.

Commands in yellow require your attention.
$ cat id_dropshare.pub | ssh [Your server's hostname] 'cat >> ~/.ssh/authorized_keys'

Set up the key pair in Dropshare for Mac

Open the Dropshare for Mac preferences window, navigate to the Connection tab, switch to appropriate connection, select both your generated private and public key, and enter your passphrase in the password field. You are now able to upload files using SCP over SSH and public key authentication.

Was this article helpful?
2 out of 3 found this helpful

Powered by Zendesk