Secure connection with an SFTP server requires an SSH Key pair to securely verify the connection. With most vendors, the keys will be provided by the vendor, but there may be scenarios where you need to generate the key yourself. Keys can be generated through the command prompt in Windows using the shh-keygen command or using a 3rd party application such as PuTTY or Kleopatra. This document will cover generating the keys with PuTTY.
Generate Keys
- Download and install PuTTY.
- Launch the PuTTYgen application.
- Click on the Generate button in the Actions section.
- Optional – Edit the Key comment to easily identify the key in the future.
- Optional – Under the Key menu, the strength of the key can be changed if required.
- Copy the value in the Key box (begins with ssh-rsa…) and save the key locally with the name public_key.txt.
- Under the Conversions menu, select Export OpenSSH key.
- Save the key with the name private_key.
Use Keys
- Send the public_key.txt file to the SFTP vendor or upload it to your own SFTP server.
- Open SmartConnect and create a new FTP Connector.
- Upload the private_key file into the Key File field.
- Validate and ensure the server connects.