From a8b71d452b0e829b40b528b9c14436c36775bdc6 Mon Sep 17 00:00:00 2001 From: Jan Prochazka Date: Thu, 29 Apr 2021 14:05:32 +0200 Subject: [PATCH] ssh tunnel keyfile auth fix #106 --- packages/api/src/utility/sshTunnel.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/api/src/utility/sshTunnel.js b/packages/api/src/utility/sshTunnel.js index cf2463bea..d30eced35 100644 --- a/packages/api/src/utility/sshTunnel.js +++ b/packages/api/src/utility/sshTunnel.js @@ -34,7 +34,7 @@ async function getSshConnection(connection) { password: connection.sshMode == 'userPassword' ? connection.sshPassword : undefined, agentSocket: connection.sshMode == 'agent' ? platformInfo.sshAuthSock : undefined, privateKey: - connection.sshMode == 'keyFile' && connection.sshKeyFile ? await fs.readFile(connection.sshKeyFile) : undefined, + connection.sshMode == 'keyFile' && connection.sshKeyfile ? await fs.readFile(connection.sshKeyfile) : undefined, skipAutoPrivateKey: true, noReadline: true, };