Agent Skills
› ryantsai/KKTerm
› ssh-troubleshooter
ssh-troubleshooter
GitHub用于诊断KKTerm中SSH连接失败、tmux恢复异常、主机密钥警告、认证错误及SFTP启动问题。按安全规范逐步排查,区分会话状态,提供基于证据的修复建议。
Trigger Scenarios
SSH连接失败
tmux恢复问题
主机密钥警告
认证错误
ProxyJump配置问题
SFTP启动失败
Install
npx skills add ryantsai/KKTerm --skill ssh-troubleshooter -g -y
SKILL.md
Frontmatter
{
"name": "ssh-troubleshooter",
"description": "Diagnose SSH Connection failures, tmux resume problems, host key warnings, authentication errors, ProxyJump issues, and SFTP-over-SSH startup problems in KKTerm."
}
SSH Troubleshooter
Use this skill when a user asks why an SSH Connection, SSH Session, tmux resume, or SFTP launch is failing.
Workflow
- Identify whether the user is talking about a stored Connection, a Quick Connect draft, or a live Session.
- Ask for the smallest missing fact only when the current context does not include it: host, port, auth method, proxy/jump path, or the visible error.
- Prefer read-only checks first: Connection settings, host reachability, DNS, known host status, auth method, and tmux session name/history settings.
- Explain likely causes in order of evidence, not in order of convenience.
- Suggest commands only when they are reviewable and scoped to the target host or local config file.
- For host key changes, treat the warning as security-sensitive. Do not tell the user to delete trust records until they confirm the host identity out of band.
- For auth failures, separate password, key file, agent, and keyboard-interactive paths. Do not ask the user to paste secrets into chat.
- For tmux issues, distinguish attach/resume failure from SSH transport failure.
KKTerm Boundaries
- Stored resources are Connections, not profiles.
- Live terminal state is a Session.
- SFTP opens from an SSH Connection.
- Secrets belong in the OS keychain, not chat or SQLite.
- Native SSH uses KKTerm's NativeSsh transport; local Windows shells use ConPTY through the Pty transport.
Version History
- b4e2eb1 Current 2026-07-05 14:38


