Open source Grok Bot alternative, Bring your own agent and subscription: message Claude Code, Codex, Gemini CLI, Cursor, Copilot and 40+ AI agents as bots on your own computer, from iPhone, Mac, Windows, Linux or terminal. Agent-agnostic and free. Also a Muse and Dots alternative. Built in Rust.
Rust acpagent-client-protocolai-agentsai-assistantclaudeclaude-codecodexcoding-agentscursorgeminigemini-cligrok-bot-alternativeiosiphonelinuxmacosmcpopen-sourcerustself-hosted
feat(desktop): offer the computers in your SSH config, after asking
leepokai3d0dc28cd5ae
diff --git a/apps/desktop/src/main/index.ts b/apps/desktop/src/main/index.tsindex 114b669a..b4a41c0b 100644--- a/apps/desktop/src/main/index.ts+++ b/apps/desktop/src/main/index.ts@@ -20,6 +20,7 @@ import { VoiceShortcutKeys } from './voice-shortcut'import { registerScreenIPC } from './screen'import { registerCloud } from './cloud'import { registerSSH } from './ssh'+import { registerSSHConfig } from './ssh-config'import { QuitLifecycle } from './quit-lifecycle'import { Island } from './island'import { registerErrorReports } from './error-reports'@@ -242,6 +243,7 @@ if (yieldsToInstall()) {registerScreenIPC()registerCloud(account)registerSSH(() => BrowserWindow.getAllWindows())+ registerSSHConfig()// Calls use the microphone (realtime voice); nothing else asks for permissions.session.defaultSession.setPermissionRequestHandler((_wc, permission, done) => done(permission === 'media' || permission === 'clipboard-sanitized-write'))account.register(() => BrowserWindow.getAllWindows())diff --git a/apps/desktop/src/main/ssh-config.ts b/apps/desktop/src/main/ssh-config.tsnew file mode 100644index 00000000..deae0be7--- /dev/null+++ b/apps/desktop/src/main/ssh-config.ts@@ -0,0 +1,41 @@+import { globSync, readFileSync } from 'node:fs'+import { homedir } from 'node:os'+import { isAbsolute, join } from 'node:path'+import { ipcMain } from 'electron'+import type { SSHConfigAccess, SSHConfigHost, SSHConfigHosts } from '../shared/ssh'+import { offeredHosts, parseHosts } from '../shared/ssh-config'+import { prefs } from './host-controller'++// Hosts from `~/.ssh/config`, offered in Settings → Computers. The file is read only after the user+// allowed it there; the answer is kept in prefs.++const sshDir = join(homedir(), '.ssh')++/** A file's hosts, then those of the files it includes (relative paths are in ~/.ssh, as for ssh). */+function readHosts(file: string, depth = 0): SSHConfigHost[] {+ let text: string+ try {+ text = readFileSync(file, 'utf8')+ } catch {+ return []+ }+ const { hosts, includes } = parseHosts(text)+ // ssh's own nesting limit.+ if (depth >= 16) return hosts+ const path = (p: string) => (p.startsWith('~/') ? join(homedir(), p.slice(2)) : isAbsolute(p) ? p : join(sshDir, p))+ return [...hosts, ...includes.flatMap((p) => globSync(path(p)).flatMap((f) => readHosts(f, depth + 1)))]+}++function configHosts(): SSHConfigHosts {+ const saved = prefs.get('sshConfigAccess')+ const access: SSHConfigAccess = saved === 'allowed' || saved === 'denied' ? saved : 'ask'+ return { access, hosts: access === 'allowed' ? offeredHosts(readHosts(join(sshDir, 'config'))) : [] }+}++export function registerSSHConfig() {+ ipcMain.handle('ssh:configHosts', () => configHosts())+ ipcMain.handle('ssh:setConfigAccess', (_e, access: unknown) => {+ if (access === 'allowed' || access === 'denied') prefs.set('sshConfigAccess', access)+ return configHosts()+ })+}diff --git a/apps/desktop/src/main/ssh.ts b/apps/desktop/src/main/ssh.tsindex 8b2c688f..3b2b8772 100644--- a/apps/desktop/src/main/ssh.ts+++ b/apps/desktop/src/main/ssh.ts@@ -6,7 +6,7 @@ import { createServer } from 'node:net'import { homedir, platform } from 'node:os'import { join } from 'node:path'import { app, dialog, ipcMain, type BrowserWindow } from 'electron'-import type { SSHAttachment, SSHProfile, SSHState, SSHStatus } from '../shared/ssh'+import { isSSHHost, type SSHAttachment, type SSHProfile, type SSHState, type SSHStatus } from '../shared/ssh'import { dataDir } from './host-controller'import { infoArguments, knownHostsFiles, orphanTunnelPattern, resolveArguments, tunnelArguments } from './ssh-command'@@ -23,7 +23,7 @@ const home = homedir()/** A reason the profile can't be used, or null. */export function validate(p: SSHProfile): string | null {- if (p.host.startsWith('-') || !/^[A-Za-z0-9._-]+$/.test(p.host)) {+ if (!isSSHHost(p.host)) {return 'Use an SSH alias or a hostname: letters, digits, dots, dashes and underscores.'}if (p.user !== null && !/^[A-Za-z_][A-Za-z0-9._-]*$/.test(p.user)) return "That user name isn't valid."diff --git a/apps/desktop/src/preload/ssh.ts b/apps/desktop/src/preload/ssh.tsindex 4c1f6d88..0d11db58 100644--- a/apps/desktop/src/preload/ssh.ts+++ b/apps/desktop/src/preload/ssh.ts@@ -1,5 +1,5 @@import { ipcRenderer, type IpcRendererEvent } from 'electron'-import type { SSHBridge, SSHState } from '../shared/ssh'+import type { SSHBridge, SSHConfigHosts, SSHState } from '../shared/ssh'/** `window.codync.ssh`: SSH computers, run by the main process (main/ssh.ts). */export const sshBridge: SSHBridge = {@@ -15,4 +15,6 @@ export const sshBridge: SSHBridge = {disconnect: (id) => ipcRenderer.send('ssh:disconnect', id),trustHostKey: (id) => ipcRenderer.send('ssh:trustHostKey', id),chooseKey: () => ipcRenderer.invoke('ssh:chooseKey') as Promise<string | null>,+ configHosts: () => ipcRenderer.invoke('ssh:configHosts') as Promise<SSHConfigHosts>,+ setConfigAccess: (access) => ipcRenderer.invoke('ssh:setConfigAccess', access) as Promise<SSHConfigHosts>,}diff --git a/apps/desktop/src/renderer/demo/bridge.ts b/apps/desktop/src/renderer/demo/bridge.tsindex c84ad740..fab51f19 100644--- a/apps/desktop/src/renderer/demo/bridge.ts+++ b/apps/desktop/src/renderer/demo/bridge.ts@@ -67,6 +67,8 @@ const bridge: CodyncBridge = {disconnect() {},trustHostKey() {},chooseKey: async () => null,+ configHosts: async () => ({ access: 'denied', hosts: [] }),+ setConfigAccess: async () => ({ access: 'denied', hosts: [] }),},island: {supported: false,diff --git a/apps/desktop/src/renderer/views/settings/ComputersView.tsx b/apps/desktop/src/renderer/views/settings/ComputersView.tsxindex ee76f01b..dc52821b 100644--- a/apps/desktop/src/renderer/views/settings/ComputersView.tsx+++ b/apps/desktop/src/renderer/views/settings/ComputersView.tsx@@ -17,6 +17,7 @@ import { AuthorizedDevicesSection } from './AuthorizedDevicesSection'import { useTr } from '../../lib/use-language'import { errorText, liveClient, relativeDay, SectionHeader, statusText, thisMac } from './parts'import { useSSH } from './ssh-model'+import { SSHConfigSuggestions } from './SSHConfigSuggestions'import { SSHRow } from './SSHRow'import { VoiceChatSettingsView } from './VoiceChatSettingsView'@@ -35,6 +36,7 @@ export function ComputersView() {const managed = app.managedStoresconst managedIds = new Set(managed.map((s) => s.computer.id))const others = cloud.computers.filter((c) => !managedIds.has(c.computerId))+ const addSSH = (host: string) => setEditing({ profile: { ...newSSHProfile(window.codync.hostPort), host }, isNew: true })return (<div className="settings-computers">@@ -45,7 +47,10 @@ export function ComputersView() {<div><SectionHeader title="Over SSH">- <IconButton title="Add SSH computer" icon="plus" onClick={() => setEditing({ profile: newSSHProfile(window.codync.hostPort), isNew: true })} />+ {sshState.config?.access === 'denied' ? (+ <IconButton title="Find computers in your SSH config" icon="magnifyingglass" onClick={() => void sshState.answerConfig('allowed')} />+ ) : null}+ <IconButton title="Add SSH computer" icon="plus" onClick={() => addSSH('')} /></SectionHeader><Reveal show={sshState.state.profiles.length === 0}><Text as="div" size="callout" tone="secondary">@@ -55,6 +60,7 @@ export function ComputersView() {{sshState.state.profiles.map((profile) => (<SSHRow key={profile.id} profile={profile} status={sshState.status(profile.id)} edit={() => setEditing({ profile, isNew: false })} />))}+ <SSHConfigSuggestions add={addSSH} /></div><div>diff --git a/apps/desktop/src/renderer/views/settings/SSHConfigSuggestions.tsx b/apps/desktop/src/renderer/views/settings/SSHConfigSuggestions.tsxnew file mode 100644index 00000000..adf77bca--- /dev/null+++ b/apps/desktop/src/renderer/views/settings/SSHConfigSuggestions.tsx@@ -0,0 +1,60 @@+import { useEffect } from 'react'+import { Button, IconButton } from '../../components/Controls'+import { Icon } from '../../components/Icon'+import { HStack, IconSlot, VStack } from '../../components/Stack'+import { Text } from '../../components/Text'+import { useTr } from '../../lib/use-language'+import { thisMac } from './parts'+import { useSSH } from './ssh-model'++/**+ * Under Over SSH: asks whether Codync may read `~/.ssh/config`, then lists the hosts in it that+ * aren't SSH computers yet, each with Add (`add` opens the editor with that host).+ */+export function SSHConfigSuggestions({ add }: { add: (host: string) => void }) {+ const tr = useTr()+ const ssh = useSSH()+ useEffect(() => void ssh.loadConfig(), [ssh])++ if (ssh.config?.access === 'ask') {+ return (+ <div className="settings-card settings-appear">+ <div className="settings-row">+ <IconSlot width={22} tone="secondary">+ <Icon name="magnifyingglass" size={13} />+ </IconSlot>+ <VStack grow className="settings-stack">+ <Text size="callout" weight="medium">{tr('Find computers in your SSH config?')}</Text>+ <Text size="caption" tone="secondary">+ {tr('Codync reads ~/.ssh/config on {name} to list its hosts. Nothing is sent anywhere, and nothing connects until you add one.').replaceAll('{name}', tr(thisMac))}+ </Text>+ </VStack>+ </div>+ <HStack align="stretch" gap={8}>+ <Button onClick={() => void ssh.answerConfig('allowed')}>Allow</Button>+ <Button kind="secondary" onClick={() => void ssh.answerConfig('denied')}>Not now</Button>+ </HStack>+ </div>+ )+ }+ return (+ <>+ {ssh.newConfigHosts.map((h) => (+ <div key={h.alias} className="settings-card settings-appear">+ <div className="settings-row">+ <IconSlot width={22} tone="secondary">+ <Icon name="terminal" size={13} />+ </IconSlot>+ <VStack grow className="settings-stack">+ <Text size="callout" weight="medium">{h.alias}</Text>+ <Text size="caption" tone="secondary">+ {[h.hostname && `${h.user ? `${h.user}@` : ''}${h.hostname}`, tr('In your SSH config')].filter(Boolean).join(' · ')}+ </Text>+ </VStack>+ <IconButton title="Add" icon="plus" onClick={() => add(h.alias)} />+ </div>+ </div>+ ))}+ </>+ )+}diff --git a/apps/desktop/src/renderer/views/settings/ssh-model.ts b/apps/desktop/src/renderer/views/settings/ssh-model.tsindex d216ebee..3a1c1d5c 100644--- a/apps/desktop/src/renderer/views/settings/ssh-model.ts+++ b/apps/desktop/src/renderer/views/settings/ssh-model.ts@@ -1,6 +1,6 @@import { useEffect } from 'react'import type { Computer } from '@shared/models'-import type { SSHState } from '@shared/ssh'+import type { SSHConfigHosts, SSHState } from '@shared/ssh'import { LoopbackTransport } from '../../client/host-client'import { Observable, useModel } from '../../lib/observable'import type { AppModel } from '../../store/app-model'@@ -9,6 +9,8 @@ import { BotStore } from '../../store/bot-store'/** The main process's SSH computers, mirrored for views. */class SSHModel extends Observable {state: SSHState = { profiles: [], status: {}, attachments: [] }+ /** `~/.ssh/config`'s hosts and whether the user allowed reading it; null until known. */+ config: SSHConfigHosts | null = nullprivate started = falsestart() {@@ -23,6 +25,26 @@ class SSHModel extends Observable {this.changed()}+ /** Re-reads the hosts on each visit to Computers, so ones added to the config since show up. */+ async loadConfig() {+ this.applyConfig(await window.codync.ssh.configHosts())+ }++ async answerConfig(access: 'allowed' | 'denied') {+ this.applyConfig(await window.codync.ssh.setConfigAccess(access))+ }++ private applyConfig(c: SSHConfigHosts) {+ this.config = c+ this.changed()+ }++ /** Config hosts that aren't SSH computers yet. */+ get newConfigHosts() {+ const added = new Set(this.state.profiles.map((p) => p.host))+ return (this.config?.hosts ?? []).filter((h) => !added.has(h.alias))+ }+status(id: string) {return this.state.status[id] ?? { kind: 'idle' as const }}diff --git a/apps/desktop/src/shared/ssh-config.test.ts b/apps/desktop/src/shared/ssh-config.test.tsnew file mode 100644index 00000000..7de69ed7--- /dev/null+++ b/apps/desktop/src/shared/ssh-config.test.ts@@ -0,0 +1,34 @@+import assert from 'node:assert/strict'+import { test } from 'node:test'+import { offeredHosts, parseHosts } from './ssh-config.ts'++test('ssh config hosts: named hosts with their first HostName and User, includes kept', () => {+ const { hosts, includes } = parseHosts(`+Include config.d/*+# a comment+Host mac-mini+ HostName 100.126.77.71+ User leepokai+ HostName ignored+Host isc-cluster romeo1+ HostName=romeo1.univ-reims.fr+Host *.internal !bad ??+ User nobody+Host tenfoldai+ HostName github.com+ User git+Match host foo+ User someone+Host -oProxyCommand=evil+Host *+ ServerAliveInterval 30+`)+ assert.deepEqual(includes, ['config.d/*'])+ assert.deepEqual(hosts, [+ { alias: 'mac-mini', hostname: '100.126.77.71', user: 'leepokai' },+ { alias: 'isc-cluster', hostname: 'romeo1.univ-reims.fr', user: null },+ { alias: 'romeo1', hostname: 'romeo1.univ-reims.fr', user: null },+ { alias: 'tenfoldai', hostname: 'github.com', user: 'git' },+ ])+ assert.deepEqual(offeredHosts([...hosts, { alias: 'mac-mini', hostname: 'other', user: null }]).map((h) => h.alias), ['mac-mini', 'isc-cluster', 'romeo1'])+})diff --git a/apps/desktop/src/shared/ssh-config.ts b/apps/desktop/src/shared/ssh-config.tsnew file mode 100644index 00000000..3e04f4ba--- /dev/null+++ b/apps/desktop/src/shared/ssh-config.ts@@ -0,0 +1,40 @@+import { isSSHHost, type SSHConfigHost } from './ssh.ts'++/**+ * One `ssh_config` file's `Host` names, with the first `HostName` and `User` of each block (as ssh+ * reads them), and its `Include` patterns. Patterns (`*`, `?`, `!`) and `Match` blocks aren't+ * computers; neither are names ssh would take as an option.+ */+export function parseHosts(text: string): { hosts: SSHConfigHost[]; includes: string[] } {+ const hosts: SSHConfigHost[] = []+ const includes: string[] = []+ let block: SSHConfigHost[] = []+ for (const line of text.split(/\r?\n/)) {+ // `Key value` or `Key=value`; only the first `=` separates.+ const [, key = '', rest = ''] = /^(\w+)\s*=?\s*(.*)$/.exec(line.trim()) ?? []+ const values = rest.split(/\s+/).filter(Boolean)+ switch (key.toLowerCase()) {+ case 'host':+ block = values.filter(isSSHHost).map((alias) => ({ alias, hostname: null, user: null }))+ hosts.push(...block)+ break+ case 'match':+ block = []+ break+ case 'hostname':+ for (const h of block) h.hostname ??= values[0] ?? null+ break+ case 'user':+ for (const h of block) h.user ??= values[0] ?? null+ break+ case 'include':+ includes.push(...values)+ break+ }+ }+ return { hosts, includes }+}++/** Hosts worth offering as computers: each alias once, without git hosting aliases (user `git`). */+export const offeredHosts = (hosts: SSHConfigHost[]) =>+ hosts.filter((h, i) => h.user !== 'git' && hosts.findIndex((o) => o.alias === h.alias) === i)diff --git a/apps/desktop/src/shared/ssh.ts b/apps/desktop/src/shared/ssh.tsindex 3f3f9419..f18102d7 100644--- a/apps/desktop/src/shared/ssh.ts+++ b/apps/desktop/src/shared/ssh.ts@@ -41,6 +41,25 @@ export interface SSHState {attachments: SSHAttachment[]}+/** A name ssh takes as a destination without it reading as an option: an alias or a hostname. */+export const isSSHHost = (host: string) => !host.startsWith('-') && /^[A-Za-z0-9._-]+$/.test(host)++/** A `Host` of `~/.ssh/config`, offered as an SSH computer to add. */+export interface SSHConfigHost {+ alias: string+ hostname: string | null+ user: string | null+}++/** Whether the user let Codync read `~/.ssh/config` (asked in Settings → Computers). */+export type SSHConfigAccess = 'ask' | 'allowed' | 'denied'++export interface SSHConfigHosts {+ access: SSHConfigAccess+ /** Empty unless `allowed`. */+ hosts: SSHConfigHost[]+}+export const SSH_INSTALL_COMMAND = 'brew install leepokai/codync/codync-host && codync-host install'export const newSSHProfile = (remotePort = 19222): SSHProfile => ({@@ -65,4 +84,8 @@ export interface SSHBridge {trustHostKey(id: string): void/** The system file dialog; the chosen path, or null. */chooseKey(): Promise<string | null>+ /** The hosts in `~/.ssh/config`, read only once the user allowed it. */+ configHosts(): Promise<SSHConfigHosts>+ /** The user's answer; `allowed` reads the config right away. */+ setConfigAccess(access: 'allowed' | 'denied'): Promise<SSHConfigHosts>}diff --git a/apps/ios/Kit/Sources/CodyncKit/Resources/Languages/de.json b/apps/ios/Kit/Sources/CodyncKit/Resources/Languages/de.jsonindex 72adacf0..1f9073ab 100644--- a/apps/ios/Kit/Sources/CodyncKit/Resources/Languages/de.json+++ b/apps/ios/Kit/Sources/CodyncKit/Resources/Languages/de.json@@ -1197,5 +1197,10 @@"Library": "Mediathek","Library is empty": "Die Mediathek ist leer","Artifacts {name} makes and files shared in this chat show here.": "Artefakte von {name} und in diesem Chat geteilte Dateien erscheinen hier.",- "{name}, view details": "{name}, Details anzeigen"+ "{name}, view details": "{name}, Details anzeigen",+ "Find computers in your SSH config?": "Computer in deiner SSH-Konfiguration finden?",+ "Find computers in your SSH config": "Computer in deiner SSH-Konfiguration finden",+ "Codync reads ~/.ssh/config on {name} to list its hosts. Nothing is sent anywhere, and nothing connects until you add one.": "Codync liest ~/.ssh/config auf {name}, um die Hosts darin aufzulisten. Nichts wird irgendwohin gesendet, und nichts verbindet sich, bevor du einen hinzufügst.",+ "In your SSH config": "In deiner SSH-Konfiguration",+ "Allow": "Erlauben"}diff --git a/apps/ios/Kit/Sources/CodyncKit/Resources/Languages/es.json b/apps/ios/Kit/Sources/CodyncKit/Resources/Languages/es.jsonindex b414c54e..61a7f91d 100644--- a/apps/ios/Kit/Sources/CodyncKit/Resources/Languages/es.json+++ b/apps/ios/Kit/Sources/CodyncKit/Resources/Languages/es.json@@ -1197,5 +1197,10 @@"Library": "Biblioteca","Library is empty": "La biblioteca está vacía","Artifacts {name} makes and files shared in this chat show here.": "Los artefactos que crea {name} y los archivos compartidos en este chat aparecen aquí.",- "{name}, view details": "{name}, ver detalles"+ "{name}, view details": "{name}, ver detalles",+ "Find computers in your SSH config?": "¿Buscar computadoras en tu configuración SSH?",+ "Find computers in your SSH config": "Buscar computadoras en tu configuración SSH",+ "Codync reads ~/.ssh/config on {name} to list its hosts. Nothing is sent anywhere, and nothing connects until you add one.": "Codync lee ~/.ssh/config en {name} para listar sus hosts. No se envía nada a ningún lado y nada se conecta hasta que agregues uno.",+ "In your SSH config": "En tu configuración SSH",+ "Allow": "Permitir"}diff --git a/apps/ios/Kit/Sources/CodyncKit/Resources/Languages/fr.json b/apps/ios/Kit/Sources/CodyncKit/Resources/Languages/fr.jsonindex 9bfd549b..d594a670 100644--- a/apps/ios/Kit/Sources/CodyncKit/Resources/Languages/fr.json+++ b/apps/ios/Kit/Sources/CodyncKit/Resources/Languages/fr.json@@ -1197,5 +1197,10 @@"Library": "Bibliothèque","Library is empty": "La bibliothèque est vide","Artifacts {name} makes and files shared in this chat show here.": "Les artefacts créés par {name} et les fichiers partagés dans cette discussion apparaissent ici.",- "{name}, view details": "{name}, voir les détails"+ "{name}, view details": "{name}, voir les détails",+ "Find computers in your SSH config?": "Trouver des ordinateurs dans votre configuration SSH ?",+ "Find computers in your SSH config": "Trouver des ordinateurs dans votre configuration SSH",+ "Codync reads ~/.ssh/config on {name} to list its hosts. Nothing is sent anywhere, and nothing connects until you add one.": "Codync lit ~/.ssh/config sur {name} pour lister ses hôtes. Rien n'est envoyé nulle part, et rien ne se connecte avant que vous en ajoutiez un.",+ "In your SSH config": "Dans votre configuration SSH",+ "Allow": "Autoriser"}diff --git a/apps/ios/Kit/Sources/CodyncKit/Resources/Languages/ja.json b/apps/ios/Kit/Sources/CodyncKit/Resources/Languages/ja.jsonindex aff8603d..b858a8ea 100644--- a/apps/ios/Kit/Sources/CodyncKit/Resources/Languages/ja.json+++ b/apps/ios/Kit/Sources/CodyncKit/Resources/Languages/ja.json@@ -1197,5 +1197,10 @@"Library": "ライブラリ","Library is empty": "ライブラリは空です","Artifacts {name} makes and files shared in this chat show here.": "{name} が作ったアーティファクトと、このチャットで共有したファイルがここに表示されます。",- "{name}, view details": "{name}、詳細を表示"+ "{name}, view details": "{name}、詳細を表示",+ "Find computers in your SSH config?": "SSH 設定からコンピューターを探しますか?",+ "Find computers in your SSH config": "SSH 設定からコンピューターを探す",+ "Codync reads ~/.ssh/config on {name} to list its hosts. Nothing is sent anywhere, and nothing connects until you add one.": "Codync は {name} の ~/.ssh/config を読み取り、ホストを一覧表示します。どこにも送信されず、追加するまで接続しません。",+ "In your SSH config": "SSH 設定にあります",+ "Allow": "許可"}diff --git a/apps/ios/Kit/Sources/CodyncKit/Resources/Languages/ko.json b/apps/ios/Kit/Sources/CodyncKit/Resources/Languages/ko.jsonindex 5c7133b7..1edd5465 100644--- a/apps/ios/Kit/Sources/CodyncKit/Resources/Languages/ko.json+++ b/apps/ios/Kit/Sources/CodyncKit/Resources/Languages/ko.json@@ -1197,5 +1197,10 @@"Library": "라이브러리","Library is empty": "라이브러리가 비어 있습니다","Artifacts {name} makes and files shared in this chat show here.": "{name}이(가) 만든 아티팩트와 이 채팅에서 공유한 파일이 여기에 표시됩니다.",- "{name}, view details": "{name}, 세부 정보 보기"+ "{name}, view details": "{name}, 세부 정보 보기",+ "Find computers in your SSH config?": "SSH 설정에서 컴퓨터를 찾을까요?",+ "Find computers in your SSH config": "SSH 설정에서 컴퓨터 찾기",+ "Codync reads ~/.ssh/config on {name} to list its hosts. Nothing is sent anywhere, and nothing connects until you add one.": "Codync가 {name}의 ~/.ssh/config를 읽어 호스트 목록을 보여 줍니다. 어디에도 전송되지 않으며 추가하기 전에는 연결하지 않습니다.",+ "In your SSH config": "SSH 설정에 있음",+ "Allow": "허용"}diff --git a/apps/ios/Kit/Sources/CodyncKit/Resources/Languages/zh-Hans.json b/apps/ios/Kit/Sources/CodyncKit/Resources/Languages/zh-Hans.jsonindex 94245b8b..c27f56bb 100644--- a/apps/ios/Kit/Sources/CodyncKit/Resources/Languages/zh-Hans.json+++ b/apps/ios/Kit/Sources/CodyncKit/Resources/Languages/zh-Hans.json@@ -1197,5 +1197,10 @@"Library": "资料库","Library is empty": "资料库还是空的","Artifacts {name} makes and files shared in this chat show here.": "{name} 做的 Artifact,和这个对话里分享的文件,都会出现在这里。",- "{name}, view details": "{name},查看详情"+ "{name}, view details": "{name},查看详情",+ "Find computers in your SSH config?": "要从 SSH 配置文件查找电脑吗?",+ "Find computers in your SSH config": "从 SSH 配置文件查找电脑",+ "Codync reads ~/.ssh/config on {name} to list its hosts. Nothing is sent anywhere, and nothing connects until you add one.": "Codync 会读取{name}上的 ~/.ssh/config,列出其中的主机。不会发送到任何地方,你添加之前也不会连接。",+ "In your SSH config": "在你的 SSH 配置文件中",+ "Allow": "允许"}diff --git a/apps/ios/Kit/Sources/CodyncKit/Resources/Languages/zh-Hant.json b/apps/ios/Kit/Sources/CodyncKit/Resources/Languages/zh-Hant.jsonindex 95423d85..bf6d603d 100644--- a/apps/ios/Kit/Sources/CodyncKit/Resources/Languages/zh-Hant.json+++ b/apps/ios/Kit/Sources/CodyncKit/Resources/Languages/zh-Hant.json@@ -1197,5 +1197,10 @@"Library": "資料庫","Library is empty": "資料庫還是空的","Artifacts {name} makes and files shared in this chat show here.": "{name} 做的 Artifact,和這個對話裡分享的檔案,都會出現在這裡。",- "{name}, view details": "{name},檢視詳情"+ "{name}, view details": "{name},檢視詳情",+ "Find computers in your SSH config?": "要從 SSH 設定檔找電腦嗎?",+ "Find computers in your SSH config": "從 SSH 設定檔找電腦",+ "Codync reads ~/.ssh/config on {name} to list its hosts. Nothing is sent anywhere, and nothing connects until you add one.": "Codync 會讀取{name}上的 ~/.ssh/config,列出裡面的主機。不會傳送到任何地方,你加入之前也不會連線。",+ "In your SSH config": "在你的 SSH 設定檔中",+ "Allow": "允許"}diff --git a/docs/guides/accounts-and-ssh.md b/docs/guides/accounts-and-ssh.mdindex 58d237c4..a3953e5f 100644--- a/docs/guides/accounts-and-ssh.md+++ b/docs/guides/accounts-and-ssh.md@@ -232,6 +232,13 @@ stops with a message instead of retrying. The remote command searches Homebrew,`~/.zprofile`. At launch the app kills tunnels a crashed or force-quit copy left behind(`pkill` on the `.codync/ssh_known_hosts` argument only Codync's tunnels carry).+*Over SSH* also offers the `Host` entries of `~/.ssh/config` and the files it `Include`s+(`main/ssh-config.ts`, parser in `shared/ssh-config.ts`): named hosts only, not patterns, `Match`+blocks or git hosting aliases (user `git`), minus the ones already added. The app reads the file+only after the user chose *Allow* in that section; the answer (`sshConfigAccess` in the main+process prefs) is asked once, and after *Not now* a header button turns it on. Add opens the+editor with the alias as Host, so ssh still resolves user, port and keys from the config.+## Verification boundariesBuild with normal simulator signing for Clerk Keychain access. Test Google consent, cancellation, restoration, two-account switching, per-account cache isolation and sign-out on real test accounts. Build success cannot verify Clerk Dashboard state.diff --git a/web/content/docs/remote-access.mdx b/web/content/docs/remote-access.mdxindex bd8ad4e2..ab3cb2f8 100644--- a/web/content/docs/remote-access.mdx+++ b/web/content/docs/remote-access.mdx@@ -92,6 +92,8 @@ The host puts these URLs first in the pairing code and sends its current addressThe desktop app on macOS and Linux can also run bots on another computer you reach with SSH, such as a Linux server or a Mac mini. Open **Settings → Computers**, and under **Over SSH** choose **Add SSH computer**. The other computer needs `codync-host` installed. Codync opens an SSH tunnel to that computer's host using your SSH config and keys (or ssh-agent); your keys stay on the computer running the desktop app. On the first connection, check the host key fingerprint, then choose **Trust and connect**.+Codync can also list the computers in your SSH config. The first time you open **Over SSH**, it asks whether it may read `~/.ssh/config`. Choose **Allow**, and each host in it that you haven't added yet shows up with a **+** to add it. Nothing is sent anywhere, and nothing connects until you add a host. If you chose **Not now**, the magnifying glass next to **Over SSH** turns the list on.+The SSH tunnel serves only the desktop app. To use that computer from your phone, pair the phone with it directly. Details for servers: [Linux servers](/docs/linux-servers).## Public routine webhooks