Marketing Cloud SSH Key Setup on Mac For Enhanced SFTP

Here is a guide to creating an SSH key on Mac when you want to transfer files from a third-party to Marketing Cloud’s Enhanced FTP server.

Create the key on your machine:

ssh-keygen -t rsa -b 4096 -m PEM
Generating public/private rsa key pair.
Enter file in which to save the key (/Users/NAME/.ssh/id_rsa): 
Enter passphrase (empty for no passphrase): 
Enter same passphrase again: 
Your identification has been saved in /Users/NAME/DIRECTORY/KEYNAME.
Your public key has been saved in /Users/NAME/DIRECTORY/
The key fingerprint is:
The key's randomart image is:

Note: uploading the generated .pub key to Marketing Cloud results in an error. To resolve this you need to convert the .pub key into a .pem key.

ssh-keygen -e -f -m ssh2 > KEYNAME.pem

Next go to Setup > Data Management > Key Management and follow the instructions to upload the .pem key and mark it Public.