04 · FEATURE GUIDE
SSH 远程 Resume
Swob 只编排你已经能安全登录的 SSH 主机;它不接管私钥,也不替你绕过远端权限。
准备
- 配置 SSH 密钥
本机运行
ssh-keygen,用ssh-copy-id user@host安装公钥;私钥只留本机。 - 先在终端验证
确认
ssh user@host无需交互密码,并且远端工作目录和 claude launcher 存在。 - 填入设置
设置 → SSH 填 host、user;只有 launcher 不在 PATH 时才填“远程路径”。
Swob 实际执行什么
ssh -t user@host 'zsh -li -c "cd <remote-cwd> && claude --resume <id>"'交互登录 shell 同时加载远端 ~/.zprofile 与 ~/.zshrc。路径和 session ID 都经过 shell quote。
范围
SSH Resume 当前面向远端 Claude Code 会话。Windows Native Alpha 不开放 SSH 设置入口。