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);