From 00541291e3939b46daadd3805925caa3363f3405 Mon Sep 17 00:00:00 2001 From: t8y2 <1156263951@qq.com> Date: Thu, 18 Jun 2026 00:15:08 +0800 Subject: [PATCH] feat(ssh): support custom SSH agent socket path --- .../connection/ConnectionDialog.vue | 7 ++++ apps/desktop/src/i18n/locales/en.ts | 2 ++ apps/desktop/src/i18n/locales/es.ts | 2 ++ apps/desktop/src/i18n/locales/it.ts | 2 ++ apps/desktop/src/i18n/locales/ja.ts | 2 ++ apps/desktop/src/i18n/locales/pt-BR.ts | 2 ++ apps/desktop/src/i18n/locales/zh-CN.ts | 2 ++ apps/desktop/src/i18n/locales/zh-TW.ts | 2 ++ apps/desktop/src/types/database.ts | 1 + crates/dbx-core/src/db/ssh_tunnel.rs | 32 ++++++++++++++++--- .../dbx-core/src/db/transport_layer_tunnel.rs | 1 + crates/dbx-core/src/models/connection.rs | 5 +++ packages/node-core/src/connections.ts | 1 + 13 files changed, 56 insertions(+), 5 deletions(-) diff --git a/apps/desktop/src/components/connection/ConnectionDialog.vue b/apps/desktop/src/components/connection/ConnectionDialog.vue index 6042e1050..b877e89b2 100644 --- a/apps/desktop/src/components/connection/ConnectionDialog.vue +++ b/apps/desktop/src/components/connection/ConnectionDialog.vue @@ -155,6 +155,7 @@ function defaultSshTunnel(): SshTunnelConfig { connect_timeout_secs: 5, expose_lan: false, use_ssh_agent: false, + ssh_agent_sock_path: "", }; } @@ -172,6 +173,7 @@ function normalizeSshTunnel(hop: Partial): SshTunnelConfig { connect_timeout_secs: Number(hop.connect_timeout_secs) || 5, expose_lan: !!hop.expose_lan, use_ssh_agent: !!hop.use_ssh_agent, + ssh_agent_sock_path: hop.ssh_agent_sock_path || "", }; } @@ -248,6 +250,7 @@ function sshLayersForConfig(config: LegacyConnectionConfig): SshTunnelConfig[] { connect_timeout_secs: config.ssh_connect_timeout_secs || 5, expose_lan: config.ssh_expose_lan || false, use_ssh_agent: false, + ssh_agent_sock_path: "", }), ]; } @@ -3477,6 +3480,10 @@ function openExternalUrl(url: string) { {{ t("connection.sshUseAgent") }} +
+ + +