I’m having trouble configuring the SFTP credential, I believe it’s the “private key”. I tested it in the terminal and it worked, but when I test it in n8n self-hosted, it returns an error
@Caio_Lima_Santos that error is misleading — “No testing function found for this credential” doesn’t mean your private key is broken, it just means n8n’s SFTP credential type doesn’t have a built-in test endpoint. so the Test button can never succeed for SFTP creds regardless of whether they actually work.
to actually verify, create a quick workflow with an SFTP node (List action pointed at /), connect your credential to it, and hit Execute. if that runs successfully you’re fine — the test button error was just noise.
if it errors with a real auth message when actually used, the most common cause is private key format. n8n’s ssh2 lib wants OpenSSH format (keys generated with ssh-keygen -t ed25519 or older RSA keys converted in place with ssh-keygen -p -o -f your_key — it’ll prompt for old/new passphrase, just hit enter twice if there isn’t one).
You’re welcome @Caio_Lima_Santos!
I kindly ask that you mark the best answer as a solution so that other community members can search for information more effectively before opening a new question. Good luck and count on us!