To log in into other Aspera servers with public key authentication, you can also create key-pairs in command line. Follow these instructions:
-
Create .ssh folder in home directory
Create a ".ssh" folder in your user account's home directory if it doesn't exist:
> md <path-to-user-home-dir>.ssh
Navigate into the .ssh folder and continue:
> cd <path-to-user-home-dir>.ssh
-
Use ssh-keygen to generate SSH key
Execute the following command in the ".ssh" folder. The program will prompt you the key-pair's file name, hit 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
-
Retrieve the public key file
When created, the key-pair can be found in your home directory's ".ssh" folder (Assuming you generated the key with default name id_rsa):
(user's home directory)\id_rsa.pub
Provide the public key file (e.g. id_rsa.pub) to your server administrator, so that it can be set up for your server connection. The instructions for installing the public key on the server can be found in the Setting Up a User's Public Key; however, the server may be installed on an Operating System that is different from the one that your client has been installed on.
-
Start a transfer using public key authentication with ascp command
To transfer files using public key authentication in command line, use the option -i private-key-file. For example:
> ascp -T -l 10M -m 1M -i "C:\Documents and Settings\(user's home directory)\.ssh\id_rsa" myfile.txt jane@10.0.0.2:\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 C:\Documents and Settings\(user's home directory)\.ssh\id_rsa.