kopia lustrzana https://github.com/c9/core
Merge pull request +13450 from c9/vfs-ssh-proxy
pass correct key to ssh ProxyCommandpull/290/head
commit
9f35bf8bd3
|
@ -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
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Ładowanie…
Reference in New Issue