ssh
Skill2 starsChanged 4 months agoMITView on GitHub
Use when connecting to remote machines or running commands over OpenSSH with a host alias, hostname, or IP address.
- Reads credentials
9 other projects use a version of this.
Adopted by
Most recently taken up by
- Suge8/friedbuntheir own version, first seen Oct 11, 2026
- OpenHands/extensionstheir own version, first seen Oct 8, 2026
- yanggujun/open-axletheir own version, first seen Sep 5, 2026
- zhinkgit/embeddedskillstheir own version, first seen Sep 3, 2026
- Dicklesworthstone/agent_flywheel_clawdbot_skills_and_integrationstheir own version, first seen Jun 19, 2026
- reddydamodar38/claude-skillstheir own version, first seen May 27, 2026
Other versions9 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 9
- zhinkgit/embeddedskills★ 764same name
- OpenHands/extensions★ 167same name
- Dicklesworthstone/agent_flywheel_clawdbot_skills_and_integrations★ 73same name
- Suge8/friedbun★ 12same name
- bigph00t/SSH-Skill★ 9same name
- FrankieeW/agent-skills★ 0same name
- nguyenvanhuy0612/claude-skills★ 0same name
- reddydamodar38/claude-skills★ 0same name
- yanggujun/open-axle★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository7 other files it gives its agents.
- apple-calendar-jxaSkill
- apple-mail-jxaSkill
- apple-safari-jxaSkill
- camofox-browserSkill
- cloudflare-cliSkill
- hass-cliSkill
- memorySkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
14 rules. 0 are common, 6 are distinctive, and 8 are very specific to this project.
0
Common
Most of the 6 edited versions we read keep these.
6
Distinctive
This author's own choices. Worth a look.
8
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 13
Use the system OpenSSH client for remote command execution.
- Distinctive: line 19
Never print private keys, passphrases, agent details, or secret environment variables.
- Very specific: line 21
Do not automate password entry.
- Distinctive: line 22
Treat remote commands as potentially destructive.
- Distinctive: line 23
Prefer read-only inspection before mutations and verify the resulting remote state after a mutation.
- Very specific: line 24
Use sudo -n for non-interactive privilege escalation.
- Distinctive: line 25
Do not retry a state-changing command after a transport failure until the remote state has been inspected.
- Very specific: line 29
Use the requested SSH config alias, hostname, IP address, or user@host exactly as provided.
- Distinctive: line 32
Run a bounded, non-interactive connectivity check:
- Very specific: line 50
Use -T and -n for commands that do not need a terminal or standard input:
- Distinctive: line 63
Do not interpolate untrusted text into a remote shell string.
- Very specific: line 79
Use sh -s instead of bash -s when the target is only known to provide POSIX sh.
- Very specific: line 84
Do not allocate a TTY by default.
- Very specific: line 85
Use scp or sftp only when file transfer is requested.
“Common” is measured: kept by at least 6 in 10 of the 6 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
SSH
Use the system OpenSSH client for remote command execution. Prefer the user's
existing ~/.ssh/config, SSH agent, identities, known_hosts, jump hosts, and
connection settings instead of duplicating them in a script or skill.
Safety
- Never print private keys, passphrases, agent details, or secret environment variables.
- Preserve host-key verification. Do not use
StrictHostKeyChecking=no,UserKnownHostsFile=/dev/null, or equivalent bypasses. - Do not automate password entry. With
BatchMode=yes, authentication and host-key prompts fail instead of blocking the agent. - Treat remote commands as potentially destructive. Ask for confirmation before deleting data, changing services, modifying firewall or access settings, rebooting, or changing production state.
- Prefer read-only inspection before mutations and verify the resulting remote state after a mutation.
- Use
sudo -nfor non-interactive privilege escalation. If it requires a password or TTY, stop and report that requirement. - Do not retry a state-changing command after a transport failure until the remote state has been inspected.
Connection Workflow
- Use the requested SSH config alias, hostname, IP address, or
user@hostexactly as provided. - Confirm the client is available with
ssh -Vwhen setup is uncertain. - Inspect effective configuration with
ssh -G TARGETwhen diagnosing user, host, port, identity, proxy, or jump-host behavior. Do not expose sensitive values from the output. Run a bounded, non-interactive connectivity check:
ssh -T -n \ -o BatchMode=yes \ -o ConnectTimeout=10 \ -o ServerAliveInterval=15 \ -o ServerAliveCountMax=3 \ TARGET 'true'TARGETmay be an SSH config alias, an IP address, oruser@example.net. An empty command such asssh TARGET ""is not a meaningful health check.- Set a separate local command timeout for the overall agent operation. SSH keepalives detect an unresponsive connection but do not limit remote command runtime.
Remote Commands
Use -T and -n for commands that do not need a terminal or standard input:
ssh -T -n -o BatchMode=yes -o ConnectTimeout=10 TARGET \
'uname -s; id -un; pwd'Single-quote the remote command so shell expansion happens on the remote host:
ssh ... TARGET 'printf "%s\\n" "$HOME"'Do not interpolate untrusted text into a remote shell string. SSH passes the command to the remote shell and does not provide local array-style argument boundaries or shell escaping. Quote each value for the remote shell, or use a fixed script with carefully separated input.
For a short multiline script, send the script to a remote shell. Omit -n
because standard input is intentionally used:
ssh -T -o BatchMode=yes -o ConnectTimeout=10 TARGET 'bash -s' <<'REMOTE_SCRIPT'
set -euo pipefail
cd /srv/app
git status --short
REMOTE_SCRIPTUse sh -s instead of bash -s when the target is only known to provide POSIX
sh. Make the working directory explicit rather than relying on startup files.
TTYs, Files, and Long Jobs
- Do not allocate a TTY by default. Use
-ttonly when the remote program explicitly requires one. - Use
scporsftponly when file transfer is requested; preserve the same host-key and authentication rules. - For work that must survive disconnection, use a deliberate remote job mechanism and verify its status. Do not assume a backgrounded process will survive SSH.
- Capture stdout and stderr separately when the caller needs machine-readable output. Keep diagnostics and secrets out of parsed output.
Exit Status and Troubleshooting
SSH normally returns the remote command's exit status. A connection or SSH
client failure commonly returns 255, but inspect stderr rather than relying
only on the number.
Permission denied (publickey): verify the requested user, SSH alias, loaded identity, and agent availability without exposing key material.Host key verification failed: stop and investigate the host identity orknown_hosts; never bypass verification.Connection timed outorNo route to host: report the bounded failure and check network access, port, firewall, andProxyJumpconfiguration.sudo: a password is requiredor a TTY error: stop and ask for a non-interactive authorization path or explicit user guidance.- A remote non-zero status: report the command result and relevant stderr, then avoid speculative retries for mutations.
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.

