SFTP Security
In this microlearning, we will build on our previous discussion about connecting to SFTP from eMagiz by diving into a more advanced security configuration: private key setup. We will explore how to use private keys to ensure secure and trusted communication with SFTP servers.
Should you have any questions, please get in touch with academy@emagiz.com.
1. Prerequisites
- Basic knowledge of the eMagiz platform
- Novice course on File-based connectivity
2. Key concepts
This microlearning is about SFTP security.
- By SFTP security, we mean: Making sure that the SFTP we connect knows that we are indeed eMagiz.
3. SFTP Security
In the last microlearning, we discussed how to connect to an SFTP from eMagiz. In this microlearning, we want to expand our knowledge and look at a more complex security configuration when connecting to SFTP instances. The configuration we are talking about is the private key configuration.
- Private key is unique per client
- Private key should only be known to the client
- Public key should be known to the SFTP (server), so they trust us when we set up the communication
- A private key comes with a passphrase
If you are looking for some introductory reading into certificates, please check this microlearning.
As the private key is yours, you can ask a trusted party to generate the key, or you could create it yourself. The latter part happens a lot when connecting to an SFTP. You could use a tool like PuttyGen to achieve this. As a result, you will have a keypair. The private key should be kept safely with you in eMagiz, and you need to share the public key with the SFTP server party. In this microlearning, we will not explore on how PuttyGen works in detail. Instead, we will focus on the part in eMagiz. In eMagiz, we need to refer to the key file (linked under Resources), and we need to refer to the password we use to save our key file securely.
Note that the use of a password and a private key are mutually exclusive. So you need to either provide a password or a private key for authentication. In the help text provided by eMagiz, you can see how the reference to the key file should be made.
When you have configured these settings, you have finished the configuration in eMagiz. Now you could test whether the configuration is set up correctly between eMagiz and the SFTP. If this is not the case, eMagiz will notify you via the Manage phase, either as an error message or a log entry.
Using this setting gives the server the option to verify if the communication request came from eMagiz (or at least from the party that holds the private key of eMagiz). This is an additional security measure to ensure data integrity and quality.
4. Key takeaways
- Each client should have a unique private key.
- The private key must be kept secret and known only to the client.
- The public key can be shared with the SFTP server so it can authenticate your connection.
- The private key is protected by a passphrase to enhance security.
5. Suggested Additional Readings
If you are interested in this topic and want more information, please read the release notes provided by eMagiz. Furthermore, check out these links: