ssh-doctor
Skill7.2k starsChanged 2 months agoMITView on GitHub
SSH triage: Remote Login, launchd sshd, pre-auth closes, stale sessions.
Trending
Less talk lately.about the whole repository
Who's talking about steipete/agent-scripts
- waddle-social/waddle“fix(server): accept text/html link previews served with unknown-total range”GitHub · Jun 18, 2026 · 2 reactions
- ArchonVII/github-workflows“Review scripts for potential integration”GitHub · Jun 16, 2026 · 1 reactions
- sator-imaging/suggest-skills“[bot] Generate Manifests”GitHub · Oct 3, 2026
- sudosubin/agents.nix“agent-skills.github.steipete.agent-scripts: init at 0.12.0”GitHub · Oct 2, 2026
- sator-imaging/suggest-skills“[bot] Generate Manifests”GitHub · Sep 30, 2026
The biggest 5 of 35 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 35
Talked about on GitHub (35 times).
On GitHub · 35
- Jun 18, 2026fix(server): accept text/html link previews served with unknown-total range — waddle-social/waddle2 reactions · 2 comments
- Jun 16, 2026Review scripts for potential integration — ArchonVII/github-workflows1 reaction
- Oct 3, 2026[bot] Generate Manifests — sator-imaging/suggest-skills0 reactions · 1 comment
- Oct 2, 2026agent-skills.github.steipete.agent-scripts: init at 0.12.0 — sudosubin/agents.nix0 reactions
- Sep 30, 2026[bot] Generate Manifests — sator-imaging/suggest-skills0 reactions · 1 comment
30 more on GitHub
- Sep 24, 2026[bot] Generate Manifests — sator-imaging/suggest-skills0 reactions · 1 comment
- Sep 23, 2026[bot] Generate Manifests — sator-imaging/suggest-skills0 reactions · 1 comment
- Sep 23, 2026[bot] Generate Manifests — sator-imaging/suggest-skills0 reactions · 1 comment
- Sep 19, 2026[bot] Generate Manifests — sator-imaging/suggest-skills0 reactions · 1 comment
- Sep 19, 2026[bot] Generate Manifests — sator-imaging/suggest-skills0 reactions · 1 comment
- Aug 31, 2026[upstream] chore: refresh upstream skills to 8649e48; graduate one-password to native — novotnyllc/agent-utilities0 reactions
- Aug 29, 2026docs: replace retired gitcrawl gh workflow examples — openclaw/gitcrawl0 reactions · 2 comments
- Aug 25, 2026[bot] Generate Manifests — sator-imaging/suggest-skills0 reactions
- Aug 21, 2026[bot] Generate Manifests — sator-imaging/suggest-skills0 reactions
- Aug 18, 2026[bot] Generate Manifests — sator-imaging/suggest-skills0 reactions
- Aug 14, 2026[bot] Generate Manifests — sator-imaging/suggest-skills0 reactions
- Aug 11, 2026[bot] Generate Manifests — sator-imaging/suggest-skills0 reactions
- Aug 7, 2026[bot] Generate Manifests — sator-imaging/suggest-skills0 reactions
- Aug 4, 2026[bot] Generate Manifests — sator-imaging/suggest-skills0 reactions
- Jul 31, 2026[bot] Generate Manifests — sator-imaging/suggest-skills0 reactions
- Jul 31, 2026[bot] Generate Manifests — sator-imaging/suggest-skills0 reactions
- Jul 28, 2026[bot] Generate Manifests — sator-imaging/suggest-skills0 reactions
- Jul 24, 2026[bot] Generate Manifests — sator-imaging/suggest-skills0 reactions
- Jul 20, 2026build(deps): bump plugins/steipete-agent-scripts from `e3b05be` to `b7f7269` — mikeastock/dotfiles0 reactions
- Jul 18, 2026[bot] Generate Manifests — sator-imaging/suggest-skills0 reactions
- Jul 15, 2026[bot] Generate Manifests — sator-imaging/suggest-skills0 reactions
- Jul 13, 2026build(deps): bump plugins/steipete-agent-scripts from `e3b05be` to `01e4910` — mikeastock/dotfiles0 reactions · 1 comment
- Jul 10, 2026[bot] Generate Manifests — sator-imaging/suggest-skills0 reactions
- Jun 30, 2026feat: Use to triage issues — joeldevz/skynex-pi0 reactions
- Jun 11, 2026research(swarm,review-cycle): live end-to-end proof via computer use as a verification tier (extends #1357) — deftai/directive0 reactions
- Jun 11, 2026feat(triage): contributor trust signals in triage:queue (extends #1318) — deftai/directive0 reactions · 1 comment
- Jun 11, 2026feat(swarm,review-cycle): decision-ready boundary + owner decision brief (human-facing handoff contract) — deftai/directive0 reactions
- May 29, 2026Review steipete/agent-scripts skills for adoption candidates — NodeJSmith/Claudefiles0 reactions
- Apr 2, 2026Skill discovery: alternativas ao fluxo nexus_list + nexus_get — dougss/nexus0 reactions
- Dec 30, 2025agent-scripts — nicholaswilde/homelab0 reactions
In this repository54 other files it gives its agents.
- AGENTS.MDAGENTS.md
- agent-transcriptSkill
- beeperSkill
- browser-useSkill
- clawsweeper-statusSkill
- clickclackSkill
- cloudflare-registrarSkill
- codexbarSkill
- codex-debuggingSkill
- codex-firstSkill
- codex-huge-contextSkill
- create-cliSkill
- discord-clawdSkill
- domain-dns-opsSkill
- fleet-maintenanceSkill
- frontend-designSkill
- github-author-contextSkill
- github-cache-hygieneSkill
- github-deep-reviewSkill
- github-project-triageSkill
- hopper-debuggerSkill
- instruments-profilingSkill
- mac-maintenanceSkill
- maintainer-orchestratorSkill
- markdown-converterSkill
- nano-banana-proSkill
- native-app-performanceSkill
- notcrawlSkill
- npmSkill
- obsidianSkill
- openai-image-genSkill
- openclaw-relaySkill
- oracleSkill
- project-structureSkill
- release-mac-appSkill
- release-tweetsSkill
- remindersSkill
- remote-macSkill
- skill-cleanerSkill
- sonosSkill
- speakingSkill
- swift-concurrency-expertSkill
- swiftui-liquid-glassSkill
- swiftui-performance-auditSkill
- swiftui-view-refactorSkill
- telecrawlSkill
- things-todoSkill
- twilio-smsSkill
- video-transcript-downloaderSkill
- vm-labSkill
- whatsappSkill
- wranglerSkill
- xcode-syncSkill
- xurlSkill
The file
We split this skill into the rules it gives an agent
9 rules. About 0 are common, 6 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈6
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 8
Use when SSH connects then closes before auth, Remote Login seems advertised but unusable, or local/remote Mac SSH needs diagnosis.
- Distinctive: line 12
Do not print secrets, tokens, full env, or broad secret grep output.
- Very specific: line 37
Use BatchMode=yes only when password fallback would hang or prompt.
- Distinctive: line 80
If stale sessions are clearly stranded and blocking new SSH, terminate by selected command-line match:
- Very specific: line 88
If TERM leaves blockers, re-check ownership and active shells before using KILL.
- Distinctive: line 92
Only after loopback works but remote fails:
- Very specific: line 110
If asked to ensure ~/.profile has a Codex-managed OP_SERVICE_ACCOUNT_TOKEN copied from another host:
- Distinctive: line 112
verify exact variable/markers without printing value
- Distinctive: line 115
never echo the token
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
SSH Doctor
Use when SSH connects then closes before auth, Remote Login seems advertised but unusable, or local/remote Mac SSH needs diagnosis.
Rules
- Do not print secrets, tokens, full env, or broad secret grep output.
- Validate locally first: loopback failure means server-side sshd/launchd/config; loopback success plus remote failure means network/firewall/filter/listen path.
- Report suspicious config lines before changing
/etc/ssh/sshd_config. - Prefer non-interactive SSH:
ssh -o RequestTTY=no -o RemoteCommand=none HOST 'hostname; id -un'Baseline
hostname; id -un; sw_vers
ipconfig getifaddr en0
ipconfig getifaddr en1 2>/dev/null || true
ipconfig getifaddr en7 2>/dev/null || true
sudo systemsetup -getremotelogin
sudo systemsetup -setremotelogin on
sudo launchctl print system/com.openssh.sshd 2>&1 | head -80
sudo launchctl kickstart -k system/com.openssh.sshd
sudo lsof -nP -iTCP:22 -sTCP:LISTEN
nc -vz 127.0.0.1 22
ssh -4 -F /dev/null -o RequestTTY=no -o RemoteCommand=none USER@127.0.0.1 'hostname; id -un'Use BatchMode=yes only when password fallback would hang or prompt.
Config
sudo sshd -T 2>&1 | egrep -i '^(allowusers|denyusers|allowgroups|denygroups|listenaddress|maxstartups|logingracetime|usepam|passwordauthentication|pubkeyauthentication|authenticationmethods)'
sudo egrep -n '^[[:space:]]*(AllowUsers|DenyUsers|AllowGroups|DenyGroups|Match|MaxStartups|LoginGraceTime|ListenAddress|AuthenticationMethods|UsePAM|PasswordAuthentication|PubkeyAuthentication)\b' /etc/ssh/sshd_config /etc/ssh/sshd_config.d/* 2>/dev/null || trueSuspicious:
DenyUsersmatching target user- restrictive
AllowUsers/AllowGroups Matchblock accidentally applying- tiny
MaxStartups - tiny
LoginGraceTime ListenAddressmissing target interface
Logs
sudo log show --last 30m --predicate 'process == "sshd" OR process == "launchd"' --style compact | tail -160Important Mac symptom:
- client:
kex_exchange_identification: Connection closed by remote host - server log:
Could not create new instance of inetd service: 67: Too many processes launchctl print system/com.openssh.sshd: highcopy count- many
sshd-session: USERprocesses parented by PID 1
This means launchd accepted TCP but refused to spawn more sshd inetd copies.
Stale sshd-session Fix
Inspect first:
sudo launchctl print system/com.openssh.sshd 2>&1 | egrep 'active count|copy count|state =|last exit code|runs ='
ps -axo pid,ppid,uid,user,state,lstart,etime,comm,args | awk '/sshd-session:/ && !/awk/ {print}'
sudo lsof -nP -c sshd-session -iTCP 2>/dev/null | head -120If stale sessions are clearly stranded and blocking new SSH, terminate by selected command-line match:
ps -axo pid=,args= | awk '/sshd-session: / && !/awk/ {print $1}' | xargs sudo kill -TERM
sleep 2
ps -axo pid=,args= | awk '/sshd-session: / && !/awk/ {print}'If TERM leaves blockers, re-check ownership and active shells before using KILL.
Firewall
Only after loopback works but remote fails:
sudo /usr/libexec/ApplicationFirewall/socketfilterfw --getglobalstate
sudo /usr/libexec/ApplicationFirewall/socketfilterfw --listapps | grep -i ssh -A2 -B2 || true
sudo pfctl -sr 2>/dev/null | head -80
sudo pfctl -si 2>/dev/null | head -80Also check listen address and target interface:
ifconfig | awk '/^[a-z0-9]+:/{iface=$1; sub(":","",iface)} iface ~ /^en[0-9]+$/ && /inet / {print iface, $2}'
sudo lsof -nP -iTCP:22 -sTCP:LISTENOP Profile Block
If asked to ensure ~/.profile has a Codex-managed OP_SERVICE_ACCOUNT_TOKEN copied from another host:
- verify exact variable/markers without printing value
- copy only the matching line/block
- redirect through a
chmod 600temp file - never echo the token
Presence check:
awk 'BEGIN{b=0;e=0;x=0} /BEGIN Codex-managed OP_SERVICE_ACCOUNT_TOKEN/ {b=1} /END Codex-managed OP_SERVICE_ACCOUNT_TOKEN/ {e=1} /^[[:space:]]*(export[[:space:]]+)?OP_SERVICE_ACCOUNT_TOKEN=/ {x=1} END{print "marker_begin", b; print "marker_end", e; print "exact_var", x}' ~/.profileAppend from remote host:
tmpfile=$(mktemp /tmp/codex-op-token.XXXXXX)
chmod 600 "$tmpfile"
ssh -o RequestTTY=no -o RemoteCommand=none HOST 'awk '\''/^[[:space:]]*(export[[:space:]]+)?OP_SERVICE_ACCOUNT_TOKEN=/ {print; exit}'\'' ~/.profile' > "$tmpfile"
if [ -s "$tmpfile" ]; then
{
printf '\n# BEGIN Codex-managed OP_SERVICE_ACCOUNT_TOKEN\n'
sed -n '1p' "$tmpfile"
printf '# END Codex-managed OP_SERVICE_ACCOUNT_TOKEN\n'
} >> ~/.profile
fi
rm -f "$tmpfile"Closeout
Report:
- root cause
- exact commands changed
- validation output, redacted as needed
- whether remote should retry
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

