Skip to main content

After this article

You’ll be able to connect an SFTP server to Lumos to ingest file-based data, such as invoice or spend records, delivered as CSV files. This connector syncs spend records, not user accounts. To ingest user and access data from CSV files on an SFTP server, use the flat file connector instead; see Connecting Flat Files with Lumos.

Capabilities

Required plan and roles

  • SFTP server access: an SFTP server administrator who can create a user account that signs in with an SSH key Lumos generates, plus the server’s hostname and the folder path Lumos should read.
  • Files: at least one CSV file in that folder before you connect. Lumos reads .csv files, and .csv.gpg files when you turn on PGP decryption.

Read-only access vs provisioning

Is read-only possible? Yes, and it’s the only mode this connector supports. SFTP ingests files (such as invoice or spend records) and never writes back. The Capabilities table marks Provision as unsupported for file-based data, and no user accounts sync at all. What read-only requires. An SFTP user account set up with the SSH public key Lumos generates, the server’s hostname, and the folder where the files are delivered. Follow the steps below. Watch out for. Because this connector never syncs user accounts, a full integration sync will report “No accounts found” even while your file data keeps arriving normally. That message is expected for this connector and doesn’t indicate a failure.

Instructions

Phase 1: Generate keys in Lumos
  1. Find the SFTP card in your Lumos integrations and open it.
  2. Click Get SSH Key and copy the SSH public key. This also fills in the App Instance Identifier field.
  3. (Optional) To encrypt your files on the server, click Get PGP Key and copy the PGP public key.
Phase 2: Prepare the SFTP server
  1. Give the SSH public key to your SFTP server administrator, and have them set up a user account for Lumos that signs in with that key and can read the target folder.
  2. If you generated a PGP key, encrypt every file in the folder with the PGP public key.
  3. Upload at least one CSV file to the folder. Use the exact header names listed under View CSV file header specification on the connection card, so Lumos can parse your records.
Phase 3: Connect in Lumos
  1. On the SFTP card, enter:
    • Hostname: the hostname of your SFTP server.
    • Username: the username set up with the SSH public key.
    • Folder path: the location of the files, for example /lumos/invoices.
    • Use PGP key decryption: check this only if you encrypted the files with the PGP public key.
  2. If the card also shows a Data Type field, choose Expenses or Invoices. Each data type needs its own connection.
  3. Click Connect. Lumos lists the folder and reads at least one file to confirm the connection works.
Lumos reads the folder once a day. Ingested records appear in Lumos under Vendors > Spend Records.

Troubleshooting

The integration shows an error reading “No accounts found,” but the data still arrives. This is a false negative, not a real failure. The SFTP connector doesn’t sync user accounts, so the account step in a full sync legitimately finds none and reports “No accounts found.” Your file data (invoices, spend records) keeps flowing normally. The error can be safely ignored. Connect fails with “No files found in SFTP folder.” Lumos needs at least one file in the folder to confirm the connection. Upload a CSV file to the folder you entered in Folder path, then try again. Connect fails with “We couldn’t retrieve the contents of any of the files.” Lumos could list the folder but couldn’t read any file in it. Check that the Lumos user account can read the files, and if you checked Use PGP key decryption, that the files were encrypted with the PGP public key from this connection. Connect fails before Lumos lists any files. Check that the Hostname is right and reachable, that the Username matches the account set up with the SSH public key from this connection, and that the Folder path exists. If the connection still fails, contact support@lumos.com.