Create a key pair for your computer.
To log in into other Aspera servers with public key authentication, you can also create key-pairs in command line. Follow these instructions:
Create a .ssh folder in your user account's home directory if it does not exist:
$ mkdir /home/username/.ssh
Go to the .ssh folder and continue:
$ cd /home/username/.ssh
Run the following command in the .ssh folder. The program prompts you for the key-pair's filename. Press ENTER to use the default name id_rsa. For a passphrase, you can either enter a password, or press return twice to leave it blank:
$ ssh-keygen -t rsa
When created, the key-pair can be found in your home directory's .ssh folder (assuming you generated the key with the default name id_rsa):
Provide the public key file (for example, id_rsa.pub) to your server administrator, so that it can be set up for your server connection.
To transfer files using public key authentication on the command line, use the option -i private_key_file. For example:
$ ascp -T -l 10M -m 1M -i ~/.ssh/id_rsa myfile.txt email@example.com:/space
In this example, you are connecting to the server (10.0.0.2, directory /space) with the user account jane and the private key ~/.ssh/id_rsa.