mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-29 13:23:58 +00:00
ssh tunnel keyfile auth fix #106
This commit is contained in:
@@ -34,7 +34,7 @@ async function getSshConnection(connection) {
|
|||||||
password: connection.sshMode == 'userPassword' ? connection.sshPassword : undefined,
|
password: connection.sshMode == 'userPassword' ? connection.sshPassword : undefined,
|
||||||
agentSocket: connection.sshMode == 'agent' ? platformInfo.sshAuthSock : undefined,
|
agentSocket: connection.sshMode == 'agent' ? platformInfo.sshAuthSock : undefined,
|
||||||
privateKey:
|
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,
|
skipAutoPrivateKey: true,
|
||||||
noReadline: true,
|
noReadline: true,
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user