diff --git a/apps/desktop/src/components/connection/ConnectionDialog.vue b/apps/desktop/src/components/connection/ConnectionDialog.vue index a7de81f529..f93c771260 100644 --- a/apps/desktop/src/components/connection/ConnectionDialog.vue +++ b/apps/desktop/src/components/connection/ConnectionDialog.vue @@ -138,6 +138,7 @@ function defaultSshTunnel(): SshTunnelConfig { key_passphrase: "", connect_timeout_secs: 5, expose_lan: false, + use_ssh_agent: false, }; } @@ -154,6 +155,7 @@ function normalizeSshTunnel(hop: Partial): SshTunnelConfig { key_passphrase: hop.key_passphrase || "", connect_timeout_secs: Number(hop.connect_timeout_secs) || 5, expose_lan: !!hop.expose_lan, + use_ssh_agent: !!hop.use_ssh_agent, }; } @@ -229,6 +231,7 @@ function sshLayersForConfig(config: LegacyConnectionConfig): SshTunnelConfig[] { key_passphrase: config.ssh_key_passphrase || "", connect_timeout_secs: config.ssh_connect_timeout_secs || 5, expose_lan: config.ssh_expose_lan || false, + use_ssh_agent: false, }), ]; } @@ -1701,7 +1704,7 @@ function validateTransportLayers(config: LegacyConnectionConfig) { } if (layer.type === "ssh") { if (!layer.user?.trim()) throw new Error(t("connection.sshHopInvalidUser", { hop: label })); - if (!layer.password?.trim() && !layer.key_path?.trim()) { + if (!layer.password?.trim() && !layer.key_path?.trim() && !layer.use_ssh_agent) { throw new Error(t("connection.sshHopInvalidAuth", { hop: label })); } const timeout = Number(layer.connect_timeout_secs); @@ -2991,6 +2994,13 @@ function openExternalUrl(url: string) { +
+ + +