feat(ssh): support JumpServer keyboard-interactive authentication
This commit is contained in:
1 parent
8228c2af17
commit
947cc16d92
28 files changed
+873
-72
No files matched your search
@@ -54,6 +54,11 @@ const WINDOWS_JRE_REMOVE_ERROR = [
|
||||
// Every backend message changed away from hardcoded Chinese, paired with the
|
||||
// key and params it must resolve to.
|
||||
const CASES: { name: string; message: string; key: string; params?: Record<string, string> }[] = [
|
||||
{
|
||||
name: "SSH TOTP prompt cancelled",
|
||||
message: "SSH layer 1 failed: SSH keyboard-interactive authentication was cancelled",
|
||||
key: "connection.sshTotpCancelled",
|
||||
},
|
||||
{
|
||||
name: "streaming export unsupported",
|
||||
message: "Streaming export is unsupported for this query. Simplify it or use a supported driver.",
|
||||
|
||||
@@ -66,6 +66,9 @@ const patterns: [RegExp, string][] = [
|
||||
[/^SOCKS proxy connect rejected \(code (\d+)\)$/, "settings.tunnelsSocksConnectRejected"],
|
||||
[/^Unsupported SOCKS bound address type: (\d+)$/, "settings.tunnelsSocksUnsupportedAddrType"],
|
||||
|
||||
// SSH keyboard-interactive prompts (for example JumpServer TOTP).
|
||||
[/^(?:SSH layer \d+ failed:\s*)?SSH keyboard-interactive authentication was cancelled$/, "connection.sshTotpCancelled"],
|
||||
|
||||
// Query result export limits (crates/dbx-core/src/query_result_export.rs)
|
||||
[/^Streaming export is unsupported for this query\. Simplify it or use a supported driver\.$/, "exportProgress.streamingUnsupported"],
|
||||
[/^Streaming export needs a result-set session, but this driver returned no session_id\.$/, "exportProgress.agentSessionMissing"],
|
||||
|
||||
@@ -625,6 +625,7 @@ export default {
|
||||
sshKeyPassphrasePlaceholder: "Leave empty if key is not encrypted",
|
||||
sshKeyPathBrowse: "Browse",
|
||||
sshExposeLan: "Expose tunnel to LAN",
|
||||
sshAllowExecChannelProxy: "Enable SSH exec-channel fallback (nc)",
|
||||
sshConnectTimeout: "SSH Timeout (seconds)",
|
||||
sshHops: "Tunnel / Proxy Layers",
|
||||
sshHopAdd: "Add SSH layer",
|
||||
@@ -649,6 +650,12 @@ export default {
|
||||
sshHostKeyVerifyRemember: "Trust this host (remember this key for future connections)",
|
||||
sshHostKeyVerifyAccept: "Accept & Connect",
|
||||
sshHostKeyVerifyReject: "Cancel",
|
||||
sshInteractiveTitle: "SSH Verification Required",
|
||||
sshInteractiveMessage: "The SSH server at {host}:{port} requires additional verification.",
|
||||
sshInteractiveDefaultPrompt: "Enter the requested verification response.",
|
||||
sshInteractivePlaceholder: "Enter verification code",
|
||||
sshInteractiveSubmit: "Verify",
|
||||
sshInteractiveCancel: "Cancel",
|
||||
sshHostKeyNoticeChanged: "Host key for {host}:{port} changed — this may indicate a man-in-the-middle attack. Remove the old entry and reconnect only if you expect this change.",
|
||||
sshHostKeyNoticeRejected: "You rejected the host key for {host}:{port}; the connection was aborted and no credentials were sent.",
|
||||
sshHostKeyNoticeLearnFailed: "Could not save the host key for {host}:{port} — the host is trusted for this session only and you will be asked to verify it again next time.",
|
||||
@@ -727,6 +734,7 @@ export default {
|
||||
colorCustom: "Custom color",
|
||||
cancelConnecting: "Cancel connecting",
|
||||
connectCancelled: "Connection cancelled",
|
||||
sshTotpCancelled: "One-time code entry cancelled",
|
||||
},
|
||||
editor: {
|
||||
duckdbDraining: "The previous DuckDB query is still stopping. Please try again shortly.",
|
||||
|
||||
@@ -498,6 +498,7 @@ export default withEnglishFallback({
|
||||
sshKeyPassphrasePlaceholder: "Dejar vacío si la clave no está cifrada",
|
||||
sshKeyPathBrowse: "Examinar",
|
||||
sshExposeLan: "Exponer túnel a la red local",
|
||||
sshAllowExecChannelProxy: "Activar fallback del canal exec SSH (nc)",
|
||||
sshConnectTimeout: "Tiempo de espera SSH (segundos)",
|
||||
sshHops: "Capas de túnel SSH / proxy",
|
||||
sshHopAdd: "Agregar capa SSH",
|
||||
@@ -576,6 +577,7 @@ export default withEnglishFallback({
|
||||
colorCustom: "Color personalizado",
|
||||
cancelConnecting: "Cancelar conexión",
|
||||
connectCancelled: "Conexión cancelada",
|
||||
sshTotpCancelled: "Se canceló la introducción del código de un solo uso",
|
||||
kafkaKerberosPrincipal: "Principal",
|
||||
kafkaKerberosKeytab: "Keytab",
|
||||
kafkaKerberosServiceName: "Nombre del servicio",
|
||||
@@ -697,6 +699,12 @@ export default withEnglishFallback({
|
||||
sshHostKeyVerifyRemember: "Confiar en este host (recordar esta clave para futuras conexiones)",
|
||||
sshHostKeyVerifyAccept: "Aceptar y conectar",
|
||||
sshHostKeyVerifyReject: "Cancelar",
|
||||
sshInteractiveTitle: "Se requiere verificación SSH",
|
||||
sshInteractiveMessage: "El servidor SSH {host}:{port} requiere verificación adicional.",
|
||||
sshInteractiveDefaultPrompt: "Introduzca la respuesta de verificación solicitada.",
|
||||
sshInteractivePlaceholder: "Introducir código de verificación",
|
||||
sshInteractiveSubmit: "Verificar",
|
||||
sshInteractiveCancel: "Cancelar",
|
||||
sshHostKeyNoticeChanged: "La clave del host {host}:{port} ha cambiado, puede haber un ataque de intermediario. Si es esperado, elimine el registro antiguo y vuelva a conectar.",
|
||||
sshHostKeyNoticeRejected: "Ha rechazado la verificación de la clave del host {host}:{port}. La conexión se ha abortado, no se enviaron credenciales.",
|
||||
sshHostKeyNoticeGeneric: "Falló la verificación de la clave del host SSH {host}:{port}.",
|
||||
|
||||
@@ -496,6 +496,7 @@ export default withEnglishFallback({
|
||||
sshKeyPassphrasePlaceholder: "Lascia vuoto se la chiave non è crittografata",
|
||||
sshKeyPathBrowse: "Sfoglia",
|
||||
sshExposeLan: "Esponi tunnel alla LAN",
|
||||
sshAllowExecChannelProxy: "Abilita il fallback del canale exec SSH (nc)",
|
||||
sshConnectTimeout: "Timeout SSH (secondi)",
|
||||
sshHops: "Livelli tunnel SSH / proxy",
|
||||
sshHopAdd: "Aggiungi livello SSH",
|
||||
@@ -574,6 +575,7 @@ export default withEnglishFallback({
|
||||
colorCustom: "Colore personalizzato",
|
||||
cancelConnecting: "Annulla connessione",
|
||||
connectCancelled: "Connessione annullata",
|
||||
sshTotpCancelled: "Inserimento del codice monouso annullato",
|
||||
kafkaKerberosPrincipal: "Principal",
|
||||
kafkaKerberosKeytab: "Keytab",
|
||||
kafkaKerberosServiceName: "Nome del servizio",
|
||||
@@ -695,6 +697,12 @@ export default withEnglishFallback({
|
||||
sshHostKeyVerifyRemember: "Fidati di questo host (ricorda la chiave per connessioni future)",
|
||||
sshHostKeyVerifyAccept: "Accetta e connetti",
|
||||
sshHostKeyVerifyReject: "Annulla",
|
||||
sshInteractiveTitle: "Verifica SSH richiesta",
|
||||
sshInteractiveMessage: "Il server SSH {host}:{port} richiede una verifica aggiuntiva.",
|
||||
sshInteractiveDefaultPrompt: "Inserisci la risposta di verifica richiesta.",
|
||||
sshInteractivePlaceholder: "Inserisci il codice di verifica",
|
||||
sshInteractiveSubmit: "Verifica",
|
||||
sshInteractiveCancel: "Annulla",
|
||||
sshHostKeyNoticeChanged: "La chiave dell'host {host}:{port} è cambiata, potrebbe esserci un attacco man-in-the-middle. Se il cambiamento è previsto, elimina il vecchio record e riconnettiti.",
|
||||
sshHostKeyNoticeRejected: "Hai rifiutato la verifica della chiave host di {host}:{port}, la connessione è stata interrotta e le credenziali non sono state inviate.",
|
||||
sshHostKeyNoticeGeneric: "Verifica della chiave host SSH {host}:{port} fallita.",
|
||||
|
||||
@@ -490,6 +490,7 @@ export default withEnglishFallback({
|
||||
sshKeyPassphrasePlaceholder: "鍵が暗号化されていない場合は空のまま",
|
||||
sshKeyPathBrowse: "参照",
|
||||
sshExposeLan: "トンネルをLANに公開",
|
||||
sshAllowExecChannelProxy: "SSH 実行チャネルのフォールバックを有効化(nc)",
|
||||
sshConnectTimeout: "SSHタイムアウト(秒)",
|
||||
sshHops: "SSHトンネル / プロキシ階層",
|
||||
sshHopAdd: "SSH階層を追加",
|
||||
@@ -574,6 +575,7 @@ export default withEnglishFallback({
|
||||
zookeeperCreateModeEphemeralSequential: "エフェメラル順序",
|
||||
cancelConnecting: "接続をキャンセル",
|
||||
connectCancelled: "接続がキャンセルされました",
|
||||
sshTotpCancelled: "ワンタイムコードの入力をキャンセルしました",
|
||||
kafkaKerberosPrincipal: "プリンシパル",
|
||||
kafkaKerberosKeytab: "Keytab",
|
||||
kafkaKerberosServiceName: "サービス名",
|
||||
@@ -695,6 +697,12 @@ export default withEnglishFallback({
|
||||
sshHostKeyVerifyRemember: "このホストを信頼する(今後の接続のためにキーを記憶する)",
|
||||
sshHostKeyVerifyAccept: "承諾して接続",
|
||||
sshHostKeyVerifyReject: "キャンセル",
|
||||
sshInteractiveTitle: "SSH検証が必要です",
|
||||
sshInteractiveMessage: "SSHサーバー {host}:{port} で追加の検証が必要です。",
|
||||
sshInteractiveDefaultPrompt: "サーバーから要求された検証情報を入力してください。",
|
||||
sshInteractivePlaceholder: "検証コードを入力",
|
||||
sshInteractiveSubmit: "検証",
|
||||
sshInteractiveCancel: "キャンセル",
|
||||
sshHostKeyNoticeChanged: "ホスト {host}:{port} のキーが変更されました。中間者攻撃の可能性があります。予期された変更である場合は、古いレコードを削除して再接続してください。",
|
||||
sshHostKeyNoticeRejected: "ホスト {host}:{port} のホストキー検証を拒否しました。接続は中止され、資格情報は送信されませんでした。",
|
||||
sshHostKeyNoticeGeneric: "SSHホスト {host}:{port} のキー検証に失敗しました。",
|
||||
|
||||
@@ -612,6 +612,7 @@ export default withEnglishFallback({
|
||||
sshKeyPassphrasePlaceholder: "키가 암호화되지 않은 경우 비워 두세요",
|
||||
sshKeyPathBrowse: "찾아보기",
|
||||
sshExposeLan: "터널을 LAN에 노출",
|
||||
sshAllowExecChannelProxy: "SSH exec 채널 대체(nc) 활성화",
|
||||
sshConnectTimeout: "SSH 제한 시간 (초)",
|
||||
sshHops: "터널 / 프록시 계층",
|
||||
sshHopAdd: "SSH 계층 추가",
|
||||
@@ -636,6 +637,12 @@ export default withEnglishFallback({
|
||||
sshHostKeyVerifyRemember: "이 호스트 신뢰 (향후 연결을 위해 이 키 기억)",
|
||||
sshHostKeyVerifyAccept: "수락 후 연결",
|
||||
sshHostKeyVerifyReject: "취소",
|
||||
sshInteractiveTitle: "SSH 인증 필요",
|
||||
sshInteractiveMessage: "SSH 서버 {host}:{port}에서 추가 인증을 요구합니다.",
|
||||
sshInteractiveDefaultPrompt: "서버에서 요청한 인증 정보를 입력하세요.",
|
||||
sshInteractivePlaceholder: "인증 코드 입력",
|
||||
sshInteractiveSubmit: "인증",
|
||||
sshInteractiveCancel: "취소",
|
||||
sshHostKeyNoticeChanged: "{host}:{port}의 호스트 키가 변경되었습니다 — 이는 중간자 공격을 나타낼 수 있습니다. 이 변경을 예상한 경우에만 이전 항목을 제거하고 다시 연결하세요.",
|
||||
sshHostKeyNoticeRejected: "{host}:{port}의 호스트 키를 거부했습니다. 연결이 중단되고 자격 증명이 전송되지 않았습니다.",
|
||||
sshHostKeyNoticeLearnFailed: "{host}:{port}의 호스트 키를 저장할 수 없습니다 — 이 호스트는 이 세션에만 신뢰되며 다음에 다시 확인을 요청받습니다.",
|
||||
@@ -714,6 +721,7 @@ export default withEnglishFallback({
|
||||
colorCustom: "사용자 지정 색상",
|
||||
cancelConnecting: "연결 취소",
|
||||
connectCancelled: "연결이 취소되었습니다",
|
||||
sshTotpCancelled: "일회용 코드 입력이 취소되었습니다",
|
||||
},
|
||||
editor: {
|
||||
duckdbDraining: "이전 DuckDB 쿼리가 아직 중지 중입니다. 잠시 후 다시 시도해 주세요.",
|
||||
|
||||
@@ -497,6 +497,7 @@ export default withEnglishFallback({
|
||||
sshKeyPassphrasePlaceholder: "Deixe vazio se a chave não estiver criptografada",
|
||||
sshKeyPathBrowse: "Procurar",
|
||||
sshExposeLan: "Expor túnel à LAN",
|
||||
sshAllowExecChannelProxy: "Ativar fallback do canal exec SSH (nc)",
|
||||
sshConnectTimeout: "Timeout SSH (segundos)",
|
||||
sshHops: "Camadas de túnel SSH / proxy",
|
||||
sshHopAdd: "Adicionar camada SSH",
|
||||
@@ -575,6 +576,7 @@ export default withEnglishFallback({
|
||||
colorCustom: "Cor personalizada",
|
||||
cancelConnecting: "Cancelar conexão",
|
||||
connectCancelled: "Conexão cancelada",
|
||||
sshTotpCancelled: "Entrada do código de uso único cancelada",
|
||||
kafkaKerberosPrincipal: "Principal",
|
||||
kafkaKerberosKeytab: "Keytab",
|
||||
kafkaKerberosServiceName: "Nome do serviço",
|
||||
@@ -696,6 +698,12 @@ export default withEnglishFallback({
|
||||
sshHostKeyVerifyRemember: "Confiar neste host (lembrar desta chave para conexões futuras)",
|
||||
sshHostKeyVerifyAccept: "Aceitar e conectar",
|
||||
sshHostKeyVerifyReject: "Cancelar",
|
||||
sshInteractiveTitle: "Verificação SSH necessária",
|
||||
sshInteractiveMessage: "O servidor SSH {host}:{port} exige verificação adicional.",
|
||||
sshInteractiveDefaultPrompt: "Digite a resposta de verificação solicitada.",
|
||||
sshInteractivePlaceholder: "Digite o código de verificação",
|
||||
sshInteractiveSubmit: "Verificar",
|
||||
sshInteractiveCancel: "Cancelar",
|
||||
sshHostKeyNoticeChanged: "A chave do host {host}:{port} foi alterada, pode haver um ataque man-in-the-middle. Se esta alteração era esperada, exclua o registro antigo e reconecte.",
|
||||
sshHostKeyNoticeRejected: "Você rejeitou a verificação da chave do host {host}:{port}. A conexão foi abortada e as credenciais não foram enviadas.",
|
||||
sshHostKeyNoticeGeneric: "Falha na verificação da chave do host SSH {host}:{port}.",
|
||||
|
||||
@@ -564,6 +564,7 @@ export default withEnglishFallback({
|
||||
connecting: "正在连接 {name}...",
|
||||
cancelConnecting: "取消连接",
|
||||
connectCancelled: "连接已取消",
|
||||
sshTotpCancelled: "已取消输入一次性验证码",
|
||||
connectSuccess: "已连接 {name}",
|
||||
connectFailed: "连接失败:{message}",
|
||||
driverNotInstalled: "{driver} 驱动未安装,请在驱动管理器中安装。",
|
||||
@@ -628,6 +629,7 @@ export default withEnglishFallback({
|
||||
sshKeyPassphrasePlaceholder: "密钥未加密则留空",
|
||||
sshKeyPathBrowse: "浏览",
|
||||
sshExposeLan: "允许局域网访问隧道",
|
||||
sshAllowExecChannelProxy: "启用 SSH 执行通道回退(nc)",
|
||||
sshConnectTimeout: "SSH 超时时间(秒)",
|
||||
sshHops: "隧道/代理层级",
|
||||
sshHopAdd: "添加 SSH 层",
|
||||
@@ -652,6 +654,12 @@ export default withEnglishFallback({
|
||||
sshHostKeyVerifyRemember: "信任此主机(记住该密钥用于以后的连接)",
|
||||
sshHostKeyVerifyAccept: "接受并连接",
|
||||
sshHostKeyVerifyReject: "取消",
|
||||
sshInteractiveTitle: "需要 SSH 验证",
|
||||
sshInteractiveMessage: "SSH 服务器 {host}:{port} 要求完成额外验证。",
|
||||
sshInteractiveDefaultPrompt: "请输入服务器要求的验证信息。",
|
||||
sshInteractivePlaceholder: "输入验证码",
|
||||
sshInteractiveSubmit: "验证",
|
||||
sshInteractiveCancel: "取消",
|
||||
sshHostKeyNoticeChanged: "主机 {host}:{port} 的密钥已变更,可能存在中间人攻击。如确属预期,请删除旧记录后重新连接。",
|
||||
sshHostKeyNoticeRejected: "你已拒绝 {host}:{port} 的主机密钥验证,连接已中止,凭据未发送。",
|
||||
sshHostKeyNoticeLearnFailed: "无法保存 {host}:{port} 的主机密钥 — 该主机仅在本次会话内受信任,下次连接仍需重新确认。",
|
||||
|
||||
@@ -496,6 +496,7 @@ export default withEnglishFallback({
|
||||
sshKeyPassphrasePlaceholder: "金鑰未加密則留空",
|
||||
sshKeyPathBrowse: "瀏覽",
|
||||
sshExposeLan: "允許區域網路存取隧道",
|
||||
sshAllowExecChannelProxy: "啟用 SSH 執行通道回退(nc)",
|
||||
sshConnectTimeout: "SSH 逾時時間(秒)",
|
||||
sshHops: "SSH 隧道/代理層級",
|
||||
sshHopAdd: "新增 SSH 層",
|
||||
@@ -574,6 +575,7 @@ export default withEnglishFallback({
|
||||
colorCustom: "自訂顏色",
|
||||
cancelConnecting: "取消連接",
|
||||
connectCancelled: "連接已取消",
|
||||
sshTotpCancelled: "已取消輸入一次性驗證碼",
|
||||
kafkaKerberosPrincipal: "Principal",
|
||||
kafkaKerberosKeytab: "Keytab",
|
||||
kafkaKerberosServiceName: "服務名稱",
|
||||
@@ -695,6 +697,12 @@ export default withEnglishFallback({
|
||||
sshHostKeyVerifyRemember: "信任此主機(記住此金鑰用於之後的連線)",
|
||||
sshHostKeyVerifyAccept: "接受並連線",
|
||||
sshHostKeyVerifyReject: "取消",
|
||||
sshInteractiveTitle: "需要 SSH 驗證",
|
||||
sshInteractiveMessage: "SSH 伺服器 {host}:{port} 要求完成額外驗證。",
|
||||
sshInteractiveDefaultPrompt: "請輸入伺服器要求的驗證資訊。",
|
||||
sshInteractivePlaceholder: "輸入驗證碼",
|
||||
sshInteractiveSubmit: "驗證",
|
||||
sshInteractiveCancel: "取消",
|
||||
sshHostKeyNoticeChanged: "主機 {host}:{port} 的金鑰已變更,可能存在中間人攻擊。如確屬預期,請刪除舊記錄後重新連線。",
|
||||
sshHostKeyNoticeRejected: "您已拒絕 {host}:{port} 的主機金鑰驗證,連線已中止,憑證未發送。",
|
||||
sshHostKeyNoticeGeneric: "SSH 主機 {host}:{port} 的金鑰驗證失敗。",
|
||||
|
||||
Reference in new issue
Block a user