You can add existing SSH keys or you can generate a new SSH key to use for authentication for ECDN.
Generating a new SSH key
1. Open Terminal for Mac or Command Prompt for Windows
2. Enter the following example command that will start the generation process
$ ssh-keygen -t rsa -b 4096
This starts creating a new SSH key and returns the following
> Generating public/private rsa key pair.
3. The ssh - keygen utility prompts you to indicate where to store the key. By pressing Enter you will save it to the default location.
> Enter a file in which to save the key (/Users/ you /.ssh/id_rsa): [Press enter]
4. Type a secure passphrase
> Enter passphrase (empty for no passphrase): [Type a passphrase]
> Enter same passphrase again: [Type passphrase again]
With this you have finished generating the SSH key. After successful completion the following message is returned :
Your identification has been saved in /Users/ you /.ssh/id_rsa.
Your public key has been saved in /Users/ you /.ssh/id_rsa.pub.
The key fingerprint is:
Note : Never share your private key with anyone!
Adding your SSH key to ECDN
Your public key is saved to the /Users/you/.ssh/id_rsa.pub file by default. This is the key that you can add to your ECDN account.
1. Log in to the ECDN Management Portal – https://ecdn.deepcaching.com/ .
2. Navigate to the Manage SSH keys section that can be accessed from the user menu by moving your mouse over the account email at the top right corner.
3. Click on Add new SSH key
4. Fill in the Title and public Key and press Add to add new SSH key to ECDN. Depending on your operating system you can find the public key in the .ssh folder under your home directory.
To save the public key on Mac to the clipboard, run this in Terminal:
pbcopy < ~/.ssh/id_rsa.pub
To save the public key on Windows to the clipboard, run this after opening the Command Prompt :
type %HOMEDRIVE%%HOMEPATH%\.ssh\id_rsa.pub | clip
Now you are able to use SSH to access ECDN servers.