From 247a59f7854c0f164b60ca4bc6ef6ca05b522325 Mon Sep 17 00:00:00 2001 From: Koushik M L N Date: Thu, 22 Nov 2018 19:59:39 +0530 Subject: [PATCH] Bug Fix --- wetty.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wetty.mjs b/wetty.mjs index 2a7549d..3e2fed1 100644 --- a/wetty.mjs +++ b/wetty.mjs @@ -51,7 +51,7 @@ function getCommand(socket, sshuser, sshpass, sshhost, sshport, sshauth, sshkey) if (!sshpass) sshPath = sshuser || match ? 'ssh' : path.join(__dirname, 'bin/ssh'); else - sshPath = ['sshpass', '-p', sshpass].join(' '); + sshPath = ['sshpass', '-p', sshpass, 'ssh'].join(' '); console.log("PATH ", sshPath); const ssh = match ? `${match[0].split('/ssh/').pop().split('?')[0]}@${sshhost}` : sshAddress; console.log("SSH ", ssh);