If you plan to use the Secure Shell (SSH) file transfer protocol
(SFTP) to file transfer discovery library adapter books when the discovery
library adapter is installed on a Linux, AIX®, or Solaris operating system,
complete these steps to configure the settings:
- Ensure that SFTP is installed on both the source and target computers.
- Log on to the source computer as the user who runs the discovery
library adapter, and generate public and private keys. You must generate
public and private keys so that the discovery library adapter can
transfer books using the SFTP protocol.
On most systems, use the
ssh-keygen command. Press Enter when prompted for a passphrase
for the easiest configuration.
- On the target computer, log on as the user that the discovery
library adapter uses when accessing the target computer. Add the contents
of the public key from the source computer into the /.ssh/authorized_keys
file.
If you created the keys using a passphrase, use the ssh-agent and ssh-add commands
to prevent a prompt for the pass phrase. For more information, see http://www.ibm.com/developerworks/library/l-keyc2/
- Use the SFTP command on the source computer to check connectivity
to the target computer and verify that no password or passphrase prompt
is presented.
Example: SFTP user@targetserver.com
When
SFTP is used, you still need to provide a value for the password property
in the DLA_FileTransfer.properties file, but this property is not
used.