Support Article
SSH Private - Public key pair required for SFTP connetion
SA-53369
Summary
User needs connect SFTP server from Pega through key based authentication and requires assistance to generate SSH Private - Public key pair.
Error Messages
Not Applicable
Steps to Reproduce
Not Applicable
Root Cause
How to question
Resolution
Assuming the SFTP server is hosted on Linux, following are the steps to configure SFTP server and generate RSA private or public key pair:
1. Create a Linux user for the SFTP server, for example, sftpuser, which do not require a password.
2. On the SFTP server, generate the RSA public and private key pair.
3. Run the command ssh-keygen -t rsa to generate the RSA private and public key files, id_rsa and id_rsa.pub, respectively.
4. Copy the content of the public key file id_rsa.pub into the file authorized_keys, located in the user home folder, /home/sftpuser/.ssh/authorized_keys.
5. Use the private key id_rsa from Pega to connect to the SFTP server.
2. On the SFTP server, generate the RSA public and private key pair.
3. Run the command ssh-keygen -t rsa to generate the RSA private and public key files, id_rsa and id_rsa.pub, respectively.
4. Copy the content of the public key file id_rsa.pub into the file authorized_keys, located in the user home folder, /home/sftpuser/.ssh/authorized_keys.
5. Use the private key id_rsa from Pega to connect to the SFTP server.
Published July 23, 2018 - Updated October 8, 2020
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.