mirror of
https://github.com/linuxserver/core.git
synced 2026-02-20 05:07:19 +08:00
Merge pull request +13450 from c9/vfs-ssh-proxy
pass correct key to ssh ProxyCommand
This commit is contained in:
commit
9f35bf8bd3
4
node_modules/c9/ssh.js
generated
vendored
4
node_modules/c9/ssh.js
generated
vendored
@ -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
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user