From dc524327ba953fd87cb54824e57abd05ba044cd4 Mon Sep 17 00:00:00 2001 From: Jay Date: Sun, 6 Sep 2020 22:22:25 +0800 Subject: [PATCH] enable passphrase for ssh-privatekey --- src/components/NewConnectionDialog.vue | 4 ++++ src/redisClient.js | 1 + 2 files changed, 5 insertions(+) diff --git a/src/components/NewConnectionDialog.vue b/src/components/NewConnectionDialog.vue index 7fb30df..287ddbc 100644 --- a/src/components/NewConnectionDialog.vue +++ b/src/components/NewConnectionDialog.vue @@ -52,6 +52,10 @@ + + + + diff --git a/src/redisClient.js b/src/redisClient.js index 0f3d668..25df1da 100644 --- a/src/redisClient.js +++ b/src/redisClient.js @@ -40,6 +40,7 @@ export default { localPort: null, privateKey: sshOptions.privatekey ? fs.readFileSync(sshOptions.privatekey) : '', + passphrase: sshOptions.passphrase }; const sshConfigRaw = JSON.parse(JSON.stringify(sshConfig));