implementation of the PGP encryption standard. To encrypt your CSV file, complete the following steps:
1. Open the command line on your computer.
2. Import your Straddle PGP key with the following command:
gpg --import Straddle_key.asc
3. If successful, the command line returns a message similar to the following:
gpg: key 6CFE17E37C6960B7: public key "straddle <dev@straddle.io>"
imported gpg: Total number processed: 1
gpg: imported: 1
4. Use the --encrypt option to encrypt the file and specify the following options:
clientname_encrypted.gpg: The name of the newly encrypted file.
dev@straddle.io: The name of the encrypted file recipient.
data.csv: The name and path of the CSV file.
The following is an example of the encryption command with all options specified:
gpg --output clientname_encrypted.gpg --encrypt
--recipient dev@straddle.io data.csv
Send encrypted files using SFTP
Secure File Transfer Protocol (SFTP) is a network protocol for securely accessing, transferring and managing large files and sensitive data. SFTP transfers files security using Secure Shell (SSH) and encrypted FTP commands to avoid password sniffing and exposing sensitive information in plain text.
Set up file transfer
1. Generate SSH keys: To generate SSH key, open the command line and run the following command:
ssh-keygen -t rsa
After the above command is successful, a few questions will pop up. Ideally, just press enter for default as shown below.
Enter file in which to save the key (/home/user/.ssh/id_rsa):
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
We recommend setting up a passphrase. Keeping the passphrase blank will enable the user to log in to the remote server without any password.
SFTP generates two keys: the id_rsa.pub public key and the id_rsa private key. The public should be transferred to the remote server and the private key should be in your local machine.
2. Provide Straddle with your public SSH key: To provide your public SSH key, contact your Account Manager at Straddle. This needs to be done in advance of the first transfer attempt.
Send your encrypted file
Before you begin, check that you have the following;
Received a username for SFTP from your Account Manager.
Given the encrypted file a relevant file name. For example: clientName_feedback_Oct22.csv.gpg for Feedback, and clientName_pocData.csv.gpg for POC.
Open the command line on your computer.
To establish an SFTP connection, run the below command on the terminal: