Skip to content

Getting Error using a SSH SFTP Site with Private Key #1

@Vission01

Description

@Vission01

@drudge

I have an SFTP site that uses a private key along with user/pass for authentication. I know my Credentials are working as I can use the native FTP Upload in N8N to upload files without issue.

Here is the Error:

connect: Cannot parse privateKey: Unsupported key format

N8N Details:

{
"errorMessage": "connect: Cannot parse privateKey: Unsupported key format",
"errorDetails": {},
"n8nDetails": {
"n8nVersion": "2.6.3 (Self Hosted)",
"binaryDataMode": "filesystem",
"stackTrace": [
"Error: connect: Cannot parse privateKey: Unsupported key format",
" at SftpClient.fmtError (/home/node/.n8n/nodes/node_modules/n8n-nodes-ftp-trigger/node_modules/ssh2-sftp-client/src/index.js:82:22)",
" at SftpClient.connect (/home/node/.n8n/nodes/node_modules/n8n-nodes-ftp-trigger/node_modules/ssh2-sftp-client/src/index.js:219:37)",
" at processTicksAndRejections (node:internal/process/task_queues:105:5)",
" at PollContext.poll (/home/node/.n8n/nodes/node_modules/n8n-nodes-ftp-trigger/nodes/FtpTrigger/FtpTrigger.node.ts:328:4)",
" at WorkflowExecute.executePollNode (/usr/local/lib/node_modules/n8n/node_modules/.pnpm/n8n-core@file+packages+core_@opentelemetry+api@1.9.0_@opentelemetry+sdk-trace-base@1.30_ec37920eb95917b28efaa783206b20f3/node_modules/n8n-core/src/execution-engine/workflow-execute.ts:1117:19)",
" at WorkflowExecute.runNode (/usr/local/lib/node_modules/n8n/node_modules/.pnpm/n8n-core@file+packages+core_@opentelemetry+api@1.9.0_@opentelemetry+sdk-trace-base@1.30_ec37920eb95917b28efaa783206b20f3/node_modules/n8n-core/src/execution-engine/workflow-execute.ts:1268:11)",
" at /usr/local/lib/node_modules/n8n/node_modules/.pnpm/n8n-core@file+packages+core_@opentelemetry+api@1.9.0_@opentelemetry+sdk-trace-base@1.30_ec37920eb95917b28efaa783206b20f3/node_modules/n8n-core/src/execution-engine/workflow-execute.ts:1685:27",
" at /usr/local/lib/node_modules/n8n/node_modules/.pnpm/n8n-core@file+packages+core_@opentelemetry+api@1.9.0_@opentelemetry+sdk-trace-base@1.30_ec37920eb95917b28efaa783206b20f3/node_modules/n8n-core/src/execution-engine/workflow-execute.ts:2328:11"
]
}
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions