feat(ssh): support OpenSSH ProxyCommand for tunnel hosts
This commit is contained in:
29 files changed
+413
-10
No files matched your search
@@ -508,6 +508,7 @@ function defaultSshTunnel(): SshTunnelConfig {
|
||||
ssh_agent_sock_path: "",
|
||||
auth_method: "password",
|
||||
allow_exec_channel_proxy: false,
|
||||
proxy_command: "",
|
||||
};
|
||||
}
|
||||
|
||||
@@ -528,6 +529,7 @@ function normalizeSshTunnel(hop: Partial<SshTunnelConfig>): SshTunnelConfig {
|
||||
ssh_agent_sock_path: hop.ssh_agent_sock_path || "",
|
||||
auth_method: hop.auth_method || inferSshAuthMethod(hop),
|
||||
allow_exec_channel_proxy: !!hop.allow_exec_channel_proxy,
|
||||
proxy_command: hop.proxy_command || "",
|
||||
profile_id: hop.profile_id || undefined,
|
||||
};
|
||||
}
|
||||
@@ -10533,6 +10535,13 @@ function openExternalUrl(url: string) {
|
||||
<span class="text-xs text-muted-foreground">{{ t("connection.sshAllowExecChannelProxy") }}</span>
|
||||
</label>
|
||||
</div>
|
||||
<div class="grid grid-cols-4 items-start gap-4">
|
||||
<Label :class="connectionLabelSmallClass">{{ t("connection.sshProxyCommand") }}</Label>
|
||||
<div class="col-span-3 space-y-1">
|
||||
<Input v-model="selectedSshLayer.proxy_command" :placeholder="t('connection.sshProxyCommandPlaceholder')" :disabled="selectedSshLayer.enabled === false" />
|
||||
<p class="text-xs text-muted-foreground">{{ t("connection.sshProxyCommandHint") }}</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="grid grid-cols-4 items-center gap-4">
|
||||
<Label :class="connectionLabelSmallClass">{{ t("connection.sshConnectTimeout") }}</Label>
|
||||
<Input v-model.number="selectedSshLayer.connect_timeout_secs" type="number" min="1" max="300" step="1" class="col-span-3" :disabled="selectedSshLayer.enabled === false" />
|
||||
|
||||
Reference in new issue
Block a user