pass correct key to ssh ProxyCommand

pull/290/head
nightwing 2016-04-14 17:07:19 +00:00
rodzic a1f9a7aea0
commit 9117348f9d
1 zmienionych plików z 3 dodań i 1 usunięć

4
node_modules/c9/ssh.js wygenerowano vendored
Wyświetl plik

@ -22,8 +22,10 @@ function addProxyCommand(args, proxy) {
return; return;
var proxyHost = m[1]; var proxyHost = m[1];
var proxyPort = parseInt(m[2], 10) || 22; var proxyPort = parseInt(m[2], 10) || 22;
var proxyCmd = "ProxyCommand=ssh -W %h:%p " + args.map(quote).join(" ");
proxyCmd += " -p " + proxyPort + " " + quote(proxyHost);
args.push( args.push(
"-o", "ProxyCommand=ssh -W %h:%p -p " + proxyPort + " " + quote(proxyHost) "-o", proxyCmd
); );
} }