SFTP Agents Attributes and Authentication(4.1)

Attributes

The SFTP collection agent and the SFTP forwarding agent share a number of common attributes. They are both supported by a number of algorithms:

3des-cbc, 3des-ctr, blowfish-cbc, aes128-cbc, aes192-cbc, aes256-cbc, aes128-ctr, aes192-ctr, aes256-ctr, arcfour, arcfour128, arcfour256.

Authentication

The SFTP agents support authentication through either username/password or private key. Private keys can optionally be protected by a Key password. Most commonly used private key files, can be imported into .

Typical command line syntax (most systems):

ssh-keygen -t <keyType> -f <directoryPath>


SettingDescription

keyType

The type of key to be generated. Both RSA and DSA key types are supported.

directoryPath

The directory in which you want to save the generated keys.


Example - Creating a private key

The private key may be created using the following command line:

> ssh-keygen -t rsa -f /tmp/keystore
    Enter passphrase: xxxxxx
    Enter same passphrase again: xxxxxx

Then the following is stated:
 

Your identification key has been saved in /tmp/keystore
Your public key has been saved in /tmp/keystore.pub

When the keys are created the private key may be imported to the SFTP agent:

Finally, on the SFTP server host, append /tmp/keystore.pub to $HOME/.ssh/authorized_keys. If the $HOME/.ssh/authorized_keys is not there it must be created.