find_ssh_host

find_ssh_host is a skill for Claude Code, Codex from sfc-gh-eraigosa/dotfiles. It costs 23 tokens per session (772 once invoked), scanned B, original, Apache-2.0.

A local-network lookup workflow for finding a configured SSH host and updating its address in `~/.ssh/config`. SSH is a way to connect securely to another computer from a terminal.

In plain words
What is it for?
Use it to validate an SSH alias, scan the local network for its host, identify the current IP address, and update the matching SSH configuration.
Why use it?
It helps when a computer's local network address changes and an existing SSH alias no longer reaches it. It checks that the alias exists before searching for the host.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to validate an SSH alias, scan the local network for its host, identify the current IP address, and update the matching SSH configuration.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/sfc-gh-eraigosa/dotfiles/ssh-host-finder
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add sfc-gh-eraigosa/dotfiles --skill ssh-host-finder
Clone the repo
git clone --depth 1 https://github.com/sfc-gh-eraigosa/dotfiles

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for find_ssh_host

README.md
[![agentmods](https://agentmods.dev/badge/skills/sfc-gh-eraigosa/dotfiles/ssh-host-finder/github.svg)](https://agentmods.dev/skills/sfc-gh-eraigosa/dotfiles/ssh-host-finder)
Your own site
<a href="https://agentmods.dev/skills/sfc-gh-eraigosa/dotfiles/ssh-host-finder"><img src="https://agentmods.dev/badge/skills/sfc-gh-eraigosa/dotfiles/ssh-host-finder/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for find_ssh_host

Your own site · 80×15
<a href="https://agentmods.dev/skills/sfc-gh-eraigosa/dotfiles/ssh-host-finder"><img src="https://agentmods.dev/badge/skills/sfc-gh-eraigosa/dotfiles/ssh-host-finder.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 23 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 772 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium Privilege Escalation · line 14
    Commands invoke sudo or root privileges. Verify this elevated access is necessary and justified.
    Fix: Avoid sudo/root unless strictly required. Prefer least-privilege patterns. If elevation is needed, document the justification and scope.
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00023 $0.00772
Opus 5 $0.00012 $0.00386
Sonnet 5 $0.00005 $0.00154
Haiku 4.5 $0.00002 $0.00077

Measured 10d ago against content hash 77925d0ce320, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade B, and why

find_ssh_host scanned grade B with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 10d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Asks for rootmediumPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

- `nmap` must be installed (`brew install nmap` on macOS, `sudo apt-get install nmap` on Linux)
src/ssh-host-finder/SKILL.md · 89 lines

How it starts

The opening of the file, as written. The whole thing — 89 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Find SSH Host

This skill uses the ssh-find script to scan the local network for an SSH host defined in ~/.ssh/config, identify it by hostname, and update the config file with the host's current IP address.

Prerequisites

  • nmap must be installed (brew install nmap on macOS, sudo apt-get install nmap on Linux)
  • The ~/opt/bin/ssh-find script must be available (installed via dotfiles)
  • The target host alias must already exist in ~/.ssh/config
  • The SSH key referenced in the config must be present locally

Steps

1. Prompt for the Host Alias

Ask the user which SSH host alias they want to find. The alias must match a Host entry in ~/.ssh/config.

If the user has already provided a host alias in their request, use that value directly without prompting.

2. Validate the Host Alias

Run the following command to confirm the alias exists in the SSH config:

ssh -G <HOST_ALIAS> 2>/dev/null | head -5
  • If the command succeeds (exit code 0), the alias is valid. Extract and display the current hostname and user from the output for the user's reference.
  • If the command fails, inform the user that the alias was not found in ~/.ssh/config and stop.

3. Run ssh-find

Execute the ssh-find script via the terminal. This script is interactive — it will scan the network and prompt for confirmation before updating the config.

~/opt/scripts/network/ssh-find <HOST_ALIAS>

Important: This command is interactive. It will:

  1. Scan the local subnet for SSH-enabled hosts using nmap (may require sudo)
  2. Test each discovered IP by connecting with the configured SSH key
  3. For each successful connection, display the remote hostname and ask: Is this the correct host for '<HOST_ALIAS>'? (y/n):

You must monitor the terminal output and:

  • When prompted with (y/n), ask the user whether the displayed hostname matches the host they are looking for.
  • Send y or n based on the user's answer.

4. Report Results

Read the full file on GitHub · 89 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 10d ago First seen · 89 lines · 23 tokens per session scan B 77925d0ce320

Subscribe to this mod's changes

find_ssh_host is a skill published in the GitHub repository sfc-gh-eraigosa/dotfiles (46 stars, last pushed today), licensed Apache-2.0. It adds 23 tokens to every session and 772 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it B with 1 finding (asks for root). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

review-pr

Review and merge GitHub pull requests for Spatie packages. Use when asked to review a PR, review a pull request, merge a PR, or when given a GitHub PR URL to review. Also triggers on 'review this PR,' 'check this pull request,' 'merge this,' or '/review-pr'. Uses gh CLI for all GitHub operations.

freekmurze/dotfiles · 75 tokens

git-commit

This skill should be used BEFORE running any git commit command. Triggers when about to run git commit. Ensures commit messages follow Conventional Commits specification and prompts for the Jira ticket number.

fredrikaverpil/dotfiles · 43 tokens

gh-cli

../../../.claude/skills/gh-cli/SKILL.md.

fredrikaverpil/dotfiles · 0 tokens

gh-pr

../../../.claude/skills/gh-pr/SKILL.md.

fredrikaverpil/dotfiles · 0 tokens

churn-prevention

When the user wants to reduce churn, build cancellation flows, set up save offers, recover failed payments, or implement retention strategies. Also use when the user mentions 'churn,' 'cancel flow,' 'offboarding,' 'save offer,' 'dunning,' 'failed payment recovery,' 'win-back,' 'retention,' 'exit survey,' 'pause…

freekmurze/dotfiles · 140 tokens

marketing-psychology

When the user wants to apply psychological principles, mental models, or behavioral science to marketing. Also use when the user mentions 'psychology,' 'mental models,' 'cognitive bias,' 'persuasion,' 'behavioral science,' 'why people buy,' 'decision-making,' or 'consumer behavior.' This skill provides 70+ mental…

freekmurze/dotfiles · 79 tokens