Configuring for Aspera on Cloud
If you plan to use the Aspera CLI to make transfers to or from an Aspera on Cloud workspace, you must configure both the CLI and AoC to work together.
Before You Begin
- A working Aspera on Cloud instance and at least one workspace.
- The Aspera CLI, installed on a computer.
Configuration Steps
- Generate a key pair.
Note: If you already have an SSH public/private key pair, you can use it for the Aspera CLI, but take care to have the public key in .pem format.
- At the command line, generate your SSH public/private key pair:
#openssl genpkey -algorithm RSA -out private_key.pem -pkeyopt rsa_keygen_bits:2048
- When you are prompted to
Enter file in which to save the key
, press Enter or enter a custom path or filename. - When you are prompted to
Enter passphrase (empty for no passphrase)
, press Enter or enter a passphrase. - Confirm the passphrase.
- Extract the public key from the key pair, into a .pem file:
This is the public key that you will add to Aspera on Cloud in a later step.#openssl rsa -pubout -in private_key.pem -out public_key.pem
- At the command line, generate your SSH public/private key pair:
- Add your public key to your AoC account.
- In Aspera on Cloud, go to the user menu and select Account settings.
- On the Account settings screen, in the Public
Key field, paste the public portion of your public/private key pair.
If you accepted the defaults when you extracted the public key, it is named id_rsa.pub.pem.
- Click Submit.
- Add your private key to your CLI installation.
The file must be located in installation_directory\cli\etc.
- Edit the CLI config file.
- Locate the .aspera_cli_conf configuration file:
~/.aspera/cli/bin/.aspera_cli_conf
- In a text editor, edit the Aspera on Cloud section of the
.aspera_cli_conf file to set the following:
- The filename of the private key (private_key_file_name). The default value is private.pem.
- The organization name and hostname of the Aspera on Cloud server.
- Save the .aspera_cli_conf file.
- Locate the .aspera_cli_conf configuration file:
Configuration File Syntax
The Aspera CLI package installs a .aspera_cli_conf file with sample configurations that you can use to see the correct syntax for this file.
Defining Multiple Servers
You can define multiple Faspex servers in the .aspera_cli_conf file, and multiple sources for each server. To specify which server a given command applies to, form your Aspera CLI command sequences using the name value that you defined in the configuration file.