Many partners and security teams require key-based authentication for SFTP instead of passwords. Keys cannot be guessed, are not typed into emails, and can be revoked per client. Boomi’s SFTP connector supports this through public key authentication.
If you have set up SFTP with a password before (see Connect SFTP with password authentication), the Boomi side is almost the same — one authentication setting and a file path change. What’s different is everything around the connection: generating the key pair, getting the public half to the right person, keeping the private half safe on the runtime, and knowing what to do when the partner says “it doesn’t work”. This guide covers all of it. It is the setup used, for example, in the Truck Accessory Bill Payment Automation project, where supplier files are collected securely before becoming NetSuite vendors, receipts and bills.
How key-based login works

You create a key pair:
- the private key stays with Boomi, on the runtime that connects;
- the public key is sent to the SFTP server owner, who adds it to the user’s
authorized_keys.
When Boomi connects, the server issues a challenge that only the matching private key can sign. No password crosses the wire.
If you still need a key pair, see Generate an SSH key with PuTTYgen or Terminal.
Why security teams prefer keys
- Nothing to guess. A 4096-bit key can’t be brute-forced the way a password can.
- Nothing to phish. The private key never leaves your runtime; there is no secret to type into a form or send by email.
- Per-client revocation. If you stop working with a partner, or a runtime is decommissioned, the partner removes one public key. Nothing else is affected.
- No expiry surprises. Passwords on partner accounts often expire every 60 or 90 days; keys usually don’t, although you should still rotate them on a schedule.
Step 1: send the public key
Send the public key (the .pub file, a single line starting with ssh-rsa or ssh-ed25519) to the server owner, along with the user name it belongs to. Never send the private key; nobody else ever needs it.
It is good practice to send the key’s fingerprint too, through a different channel (a call, or a message in your ticketing system). The partner can then confirm that the key they installed is the one you sent. ssh-keygen -lf yourkey.pub prints it.
Step 2: place the private key where the runtime can read it
The connector reads the private key from a file path on the runtime:
- On a local runtime, copy the private key to a folder the runtime’s service account can read. Boomi recommends keeping keys outside the runtime installation directory, because those folders can be replaced during runtime updates. For example
C:\Boomi\keys\partner_sftpor/opt/boomi-keys/partner_sftp. - Restrict file permissions so only the runtime’s service account can read it.
- On a Boomi-hosted runtime cloud you cannot copy files to the machines yourself, so check the current SFTP connector documentation, or Boomi support, for how keys are provided there.
On Linux, restricting the file looks like this (assuming the runtime runs as a user called boomi):
sudo mkdir -p /opt/boomi-keys
sudo cp partner_sftp /opt/boomi-keys/
sudo chown -R boomi:boomi /opt/boomi-keys
sudo chmod 700 /opt/boomi-keys
sudo chmod 600 /opt/boomi-keys/partner_sftp
On Windows, give read access on the key folder to the account the Boomi runtime service runs as, and remove access for everyone else.
Runtime clusters
If the process runs on a runtime cluster, any node may execute it, so the key file must be readable at the same path on every node — typically on the cluster’s shared storage. A key that exists on one node only produces intermittent failures that are very confusing to debug.
Step 3: the connection
| Field | Value |
|---|---|
| Host / Port | as provided, port usually 22 |
| Authentication type | public key |
| User | the SFTP user the public key was added to |
| Client SSH key file path | the full path to the private key file |
| Key file password | the passphrase, if the key has one (required when it is protected) |
| Known Host Entry | the server’s host key line (see the password guide) |

As with every connection, make the host, user, key path and passphrase environment extensions, so test and production can use different partner accounts and keys without changing the process — see Deploy and maintain Boomi processes.
Key format matters
Keys created with ssh-keygen or exported from PuTTYgen both work, but PuTTY’s own .ppk format is not an OpenSSH key. In PuTTYgen use Conversions → Export OpenSSH key to produce a file the connector can read.
Tip: If the connector reports an invalid private key, convert it to the classic PEM format: ssh-keygen -p -m PEM -f partner_sftp rewrites the key in place (keep a backup first).
You can tell the formats apart by their first line:
| First line of the file | Format | Works with the connector? |
|---|---|---|
-----BEGIN RSA PRIVATE KEY----- | classic PEM (RSA) | yes — the most reliable choice |
-----BEGIN OPENSSH PRIVATE KEY----- | newer OpenSSH format | often; convert to PEM if rejected |
PuTTY-User-Key-File-... | PuTTY .ppk | no — export to OpenSSH first |
Test outside Boomi first
From the runtime machine, prove the key works with the standard client:
sftp -i /opt/boomi-keys/partner_sftp -P 22 partneruser@sftp.partner.com
If this fails, the problem is the key, user or server configuration, not Boomi. Adding -v shows exactly which step fails.
This one habit saves more time than anything else in this guide. The verbose output tells you whether the server even offered public key authentication, whether it accepted your key, and whether the failure happened before or after login. Run it as the runtime’s service account if you can (for example sudo -u boomi sftp ... on Linux), because a key that works for your own login but not for the service account is a permissions problem, not a key problem.
When the partner says it isn’t working
A short, systematic checklist resolves almost every case:
- Was the public key installed for the right user? The single most common cause.
- Is it on one line, unmodified? Copying keys through email or chat can wrap lines or add spaces.
- Do the fingerprints match? Compare yours with what they installed.
- Is your IP allowed? Key problems and firewall problems look different in
sftp -v: a firewall issue never reaches authentication. - Does the server accept your key type? Some older servers reject Ed25519 or newer signature algorithms; RSA 4096 is the safe choice.
Common mistakes
- Sending the private key to the partner instead of the public one.
- Using a
.ppkfile directly. - The runtime service account cannot read the key file (permissions or wrong path).
- The partner added the public key to the wrong user.
- A passphrase on the key but the password field left empty.
Rotating keys
Treat keys like any other credential: one key pair per partner (so you can revoke one without affecting the others), a record of where each key is used, and a rotation date. Rotation is painless if you plan for overlap: generate the new pair, send the new public key, ask the partner to add it alongside the old one, switch the environment extension to the new private key, confirm a successful run, then ask the partner to remove the old key.
Further reading
Secure file integrations
Key-based SFTP is standard for banking, payroll and B2B partner feeds. If you need help setting up or tidying up file integrations, the EDI & B2B file integration service and the Boomi integration consultant page explain how I work — get in touch.



Comments 0
No comments yet. Start the discussion.