Transferring files from a Pega server to an SFTP server
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.
- 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.
- Create an authentication profile. For details, see Creating an authentication profile.
- Create the keystore record for the SSH client private key. For details, see
Configuring a keystore by uploading a file.
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.
- Optional. Create the keystore record for the SSH public key of the SFTP server.
For details, see Configuring a keystore by uploading a 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.

- Create the FTP Server record. For more information, see Creating an FTP Server data instance.
- Configure an activity to use the FTP Server record to transfer files from Pega Platform to the SFTP server. For details, see Creating an activity.
- Configure a step in the activity that calls the Connect-FTP method. For
details, see Configuring steps in an activity.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.
- Click Save.
Previous topic Secure file transfer in Pega Next topic FTP Server data instances