Merge pull request +13450 from c9/vfs-ssh-proxy

pass correct key to ssh ProxyCommand
pull/290/head
Harutyun Amirjanyan 2016-04-14 23:54:56 +04:00
commit 9f35bf8bd3
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;
var proxyHost = m[1];
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(
"-o", "ProxyCommand=ssh -W %h:%p -p " + proxyPort + " " + quote(proxyHost)
"-o", proxyCmd
);
}