You can configure Pega Platform to securely transfer files from
a Pega server to an SFTP server. You use the Connect-FTP method in an activity to transfer
files from a Pega server to an SFTP server.
Before you begin: In order to create an FTP Server record in Pega Platform, obtain the following information.
SFTP server name or IP address.
SFTP server port (the default is port 22).
Password for the SSH client private key: If the SSH client private key is not
secured with a passphrase, a password might not exist. Obtain this information
from your SFTP server provider.
User name, if it is required for connecting to the SFTP server.
Password, if it is required for connecting to the SFTP server.
To configure a secure connection between your Pega server and SFTP server,
configure the following authentication details. You enter the authentication profile and
keystore record when you configure the authentication in the FTP Server record.
The key must be an SSH2 or OpenSSH key in PEM format. Obtain the key
from your SFTP server provider, or create your own key by using PuTTY.
Unlike most keystore records, the keystore file also must be a key that is
not wrapped in a keystore or other file.
Using an SSH public key of the SFTP server prevents connections to
servers that fail to provide this public key. Use an SSH2 or OpenSSH key in
PEM format. Obtain the key from your SFTP server provider or create your own
key by using PuTTY.
Unlike most keystore records, the keystore file
also must be a key that is not wrapped in a keystore or other file.
This task involves creating an FTP Server record to hold
the information that Pega Platform needs to find and log into an
external FTP server. Then, to transfer your files, you configure an activity that calls
the Connect-FTP method. In the method parameters, you enter the name of the FTP Server
record.
For more details on the Connect-FTP method parameters, see Connect-FTP method.
In the Method Parameters section, in the
FTP server field, enter the name of the FTP
Server record that you created for the SFTP connection.
In the Remote path field, enter the destination
path for transferred files on the SFTP server. Leave this field blank to
transfer files to the user root directory.
In the Local file field, enter the source path
for transferred files on the Pega server. This field cannot be
blank.
In the Transfer mode field, select one of the
following options:
ASCII: ASCII is the FTP default transfer mode. This mode is
primarily used for text files. It corrupts files that contain
data other than ASCII text.
Binary: Binary transfers can be used for any type of file.