ssh-new-host
Skill by ianchesal
Adds a new host to an SSH config with key auth using a 1Password key. It creates or reuses the key, helps install it on the host, verifies the login, and stores the host block in the dotfiles repo or 1Password. Written for users who manage SSH across several machines.
Install ssh-new-host
Built from the published package, never by AI.
git clone --depth 1 https://github.com/ianchesal/dotfiles /tmp/dotfiles && mkdir -p ~/.claude/skills && cp -r /tmp/dotfiles/home/dot_claude/skills/ssh-new-host ~/.claude/skills/ssh-new-hostRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/ianchesal/dotfiles /tmp/dotfiles && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/dotfiles/home/dot_claude/skills/ssh-new-host ~/.gemini/antigravity-cli/skills/ssh-new-hostAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
The ssh-new-host skill adds a server, VPS, NAS or other device to the user's SSH config. It runs a guard check and pulls the dotfiles repo, then asks for the alias, HostName and User. If no existing key is named, it creates one with the ssh-new-key skill and gives the user an ssh-copy-id command to install the public key on the host. Key authentication is tested before any host block is written.
Private addresses such as 10.x or 192.168.x go into the dotfiles repo, while public addresses go into a 1Password Secure Note, so the public repo never holds them. The skill then deploys the block with chezmoi or the justfile ssh::sync task and runs a final check. Password-only blocks are used only when the user confirms the host cannot do key auth. It suits people who manage SSH hosts across several personal machines with chezmoi and 1Password.
Written from the project's SKILL.md and checked against it.
What it can do
- Gather host detailsCollects the alias, HostName, User and port, and refuses an alias that already exists.
- Create or reuse a keyUses the ssh-new-key skill to make a 1Password key unless the user names an existing one.
- Install key on hostGives the user an ssh-copy-id command to run, since it needs the account password.
- Prove key authTests a BatchMode key login before any host block is written.
- Place host blockWrites private hosts to the dotfiles repo and public hosts to a 1Password Secure Note.
- Final checkRuns ssh -G and a test login to confirm the alias resolves and connects.
What you need
- chezmoi
- 1Password CLI (op), signed in
- The ssh-new-key skill
- A dotfiles repo managed with chezmoi
- just (for the ssh::sync task)
Try asking
- Add my NAS at 192.168.1.20 to my ssh config as nas, user admin
- Set up ssh for my VPS, user deploy, and make it sshable from all my machines
- Add this device to my ssh config and use a 1Password key
Good to know
- Password-only blocks are used only when the user confirms the host cannot do key auth.
- Other personal machines get the new host only after a push and their next dfu run.
- Appliances that manage authorized_keys in a web UI need the key pasted in by hand.
- ForwardAgent is never added and must be set by the user.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: home/dot_claude/skills/ssh-new-host/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to ssh-new-host
All alternatives →Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.
Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.
Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.
Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.
Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.
Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
ssh-new-host: common questions
Where does the new host block get saved?
Private addresses such as 10.*, 192.168.* or *.local go into the dotfiles repo. Public addresses, DNS names and VPS hosts go into a 1Password Secure Note.
Does the skill install the key on the server itself?
No. ssh-copy-id needs the account password, so the skill gives the user a command to run in their own session.
What happens if the host does not support key login?
The skill uses a password-only block, but only after the user confirms the host cannot do key auth.
How do I install ssh-new-host?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is ssh-new-host free?
The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.
Is ssh-new-host safe to use?
It scores 58 of 100. Grades: maintenance A, licence A, quality B. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to ssh-new-host?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
