SFTP

Generate an SSH Key with PuTTYgen or Terminal (for SFTP Integrations)

  • Chirag Kumar DeoChirag Kumar Deo
  • 07 Oct 2026
Terminal running ssh-keygen to create an RSA key pair

Key-based SFTP needs a key pair: a private key that stays with you and a public key you share with the server owner. Here are both common ways to create one — from a terminal on macOS, Linux or Windows, and with PuTTYgen on Windows — along with the decisions that matter for integrations specifically.

That last part is worth stressing. Most SSH key guides are written for people logging into servers interactively. An integration is different: the key is used by a service account on a runtime, often for years, by a platform (Boomi, Celigo, MuleSoft) that may be fussier about formats than your own SSH client. A key that works perfectly from your laptop can still be rejected by the integration. Choosing the right type and format up front avoids that.

Once you have the key, the Boomi side is covered in Connect SFTP in Boomi with an SSH key.

A thirty-second refresher on key pairs

The private key is a secret file; whoever holds it can log in as you. The public key is derived from it and is safe to share — it can only verify signatures, not create them. The SFTP server stores your public key; when you connect, it sends a challenge, your client signs it with the private key, and the server checks the signature. The private key never leaves your machine. That is the whole idea, and it is why the single most important rule is: share the .pub file, never the other one.

Which key type?

  • RSA, 4096 bits is accepted almost everywhere and is the safest choice for integrations with older servers.
  • Ed25519 is modern, short and fast, but check that the server (and your integration platform) supports it before choosing it.

When in doubt, use RSA 4096.

Why not always the modern option? Because an integration involves three parties that must all agree: your key generator, the partner’s SFTP server, and the integration platform’s SSH library. Banks and large enterprises often run SFTP servers that are conservative about algorithms, and integration platforms have historically been most reliable with RSA keys in PEM format. RSA 4096 is the lowest-risk choice for that three-way handshake.

Option 1: Terminal (macOS, Linux, Windows 10/11)

ssh-keygen is included with macOS, Linux and current versions of Windows (via the OpenSSH client).

ssh-keygen -t rsa -b 4096 -m PEM -C "boomi-sftp-partner" -f ~/.ssh/boomi_sftp_partner
  • -t rsa -b 4096: RSA key, 4096 bits.
  • -m PEM: the classic PEM format, which integration tools read most reliably.
  • -C: a comment so you can tell keys apart later.
  • -f: where to save it. This creates boomi_sftp_partner (private) and boomi_sftp_partner.pub (public).

You are asked for a passphrase. A passphrase encrypts the private key file; if you set one, you will enter it in the integration’s connection settings as well.

Passphrase or not?

For keys you use yourself, always set a passphrase. For integration keys it is a judgement call: the passphrase protects the key file if it is copied somewhere it shouldn’t be, but it must also be stored in the integration platform (as the connection’s key password), so it is only as safe as that storage. My recommendation is to set one, store it only in the connection (as an environment extension in Boomi), and rely on strict file permissions on the runtime as the main protection.

Show the public key to copy it:

cat ~/.ssh/boomi_sftp_partner.pub

Check its fingerprint, which is useful for confirming with the server owner:

ssh-keygen -lf ~/.ssh/boomi_sftp_partner.pub

On Windows, the same commands work in PowerShell. Paths use your user profile instead of ~, for example:

ssh-keygen -t rsa -b 4096 -m PEM -C "boomi-sftp-partner" -f $env:USERPROFILE\.ssh\boomi_sftp_partner
Get-Content $env:USERPROFILE\.ssh\boomi_sftp_partner.pub

Option 2: PuTTYgen (Windows)

PuTTYgen comes with PuTTY.

PuTTYgen: generate, protect, save, then export in OpenSSH format.
PuTTYgen: generate, protect, save, then export in OpenSSH format.
  1. Open PuTTYgen. Choose RSA and set the number of bits to 4096.
  2. Click Generate and move the mouse over the blank area until the bar fills; this provides randomness.
  3. Enter a Key comment and, ideally, a Key passphrase.
  4. Click Save private key. This saves a .ppk file for PuTTY tools.
  5. Choose Conversions → Export OpenSSH key and save it too. This is the file integration platforms such as Boomi need.
  6. Copy the text in the box at the top (Public key for pasting into OpenSSH authorized_keys file). That single line is the public key you send.

Watch out: A .ppk file is not an OpenSSH private key. If a tool rejects your key, you probably gave it the .ppk instead of the exported OpenSSH file.

Converting a key you already have

If someone hands you an existing .ppk, load it in PuTTYgen (Load), enter its passphrase, and use Conversions → Export OpenSSH key. If an integration platform rejects a newer-format OpenSSH key, rewrite it in PEM format with ssh-keygen -p -m PEM -f yourkey (after taking a backup copy).

Install the public key on the server

If you manage the server yourself, append the public key line to the user’s ~/.ssh/authorized_keys and set strict permissions:

mkdir -p ~/.ssh && chmod 700 ~/.ssh
cat boomi_sftp_partner.pub >> ~/.ssh/authorized_keys
chmod 600 ~/.ssh/authorized_keys

Otherwise, send the .pub line to the server administrator and tell them which user it is for.

The permissions are not optional decoration: most SSH servers refuse to use an authorized_keys file (or a .ssh folder) that other users can write to, and fail without an obvious message. If key login mysteriously falls back to asking for a password, check these permissions first.

Test the login

sftp -i ~/.ssh/boomi_sftp_partner partneruser@sftp.partner.com

Add -v for a verbose log if it fails. The log shows which keys were offered and whether the server accepted any of them — invaluable when you are troubleshooting with a partner who can only see their side.

Naming and recording keys

Six months from now you will not remember which key is which. A little discipline helps:

WhatConvention
File name<platform>_sftp_<partner> — e.g. boomi_sftp_acmebank
Comment (-C)the same, plus the environment — e.g. boomi-sftp-acmebank-prod
Registera simple list: key name, fingerprint, partner, user, runtime path, created date, rotation date, owner

Keep keys safe

  • Never email or commit the private key.
  • Use one key pair per integration or partner, so you can revoke one without affecting the others.
  • Record where each key is used and when it should be rotated.
  • Generate production keys on (or copy them only to) the runtime that needs them, not on shared laptops.
  • When an engineer who handled a private key leaves the team, treat that key as a candidate for early rotation.

Next

Next: Connect SFTP in Boomi with an SSH key. For the password-based alternative, see Connect SFTP with password authentication.

Setting up secure file exchange with banks, payroll providers or trading partners is a regular part of my EDI & B2B file integration work — get in touch if you would like help with yours.

Comments 0

No comments yet. Start the discussion.

Leave a comment