Globales Ranking · von 601 Skills
ssh-remote AI Agent Skill
Quellcode ansehen: oakoss/agent-skills
MediumInstallation
npx skills add oakoss/agent-skills --skill ssh-remote 48
Installationen
SSH Remote Access
Overview
SSH (Secure Shell) provides encrypted remote access, file transfer, and tunneling over untrusted networks. OpenSSH is the standard implementation on Linux, macOS, and Windows (via built-in client). The client configuration lives at ~/.ssh/config and supports per-host settings, identity management, and connection reuse.
When to use: Remote server management, secure file transfers, port forwarding, jump host traversal, automated deployments, SOCKS proxying.
When NOT to use: High-throughput bulk data transfer across WANs (use Globus or similar), GUI-heavy remote desktop (use VNC/RDP), container orchestration (use kubectl/docker CLI).
Quick Reference
| Pattern | Command / Directive | Key Points |
|---|---|---|
| Basic connect | ssh user@host |
Add -p PORT for non-default port |
| Identity file | ssh -i ~/.ssh/key user@host |
Specify private key explicitly |
| Remote command | ssh user@host "command" |
Add -t for interactive commands |
| SSH config alias | Host myserver block in ~/.ssh/config |
Simplifies repeated connections |
| File copy (rsync) | rsync -avzP src user@host:dest |
Preferred over scp for all transfers |
| File copy (scp) | scp file user@host:path |
Legacy protocol; uses SFTP internally |
| Local tunnel | ssh -L local:remote_host:remote_port |
Access remote services locally |
| Remote tunnel | ssh -R remote:localhost:local_port |
Expose local services to remote |
| SOCKS proxy | ssh -D 1080 user@host |
Dynamic port forwarding |
| Jump host | ssh -J jump user@target |
ProxyJump, available since OpenSSH 7.3 |
| Key generation | ssh-keygen -t ed25519 |
Ed25519 recommended for all new keys |
| FIDO2 key | ssh-keygen -t ed25519-sk |
Hardware-backed, requires OpenSSH 8.2+ |
| Agent | ssh-add ~/.ssh/key |
Cache key passphrase for session |
| Multiplexing | ControlMaster auto in config |
Reuse TCP connections across sessions |
| Debug | ssh -v user@host |
Up to -vvv for maximum verbosity |
Key Type Recommendations
| Algorithm | Recommendation | Notes |
|---|---|---|
| Ed25519 | Default for all new keys | 256-bit, fast, secure, supported on OpenSSH 6.5+ |
| Ed25519-SK (FIDO2) | Strongest option with hardware key | Requires physical security key, OpenSSH 8.2+ |
| RSA 4096 | Legacy compatibility only | Use only when Ed25519 is unsupported by the remote system |
| ECDSA | Avoid | Implementation concerns; prefer Ed25519 |
File Transfer Decision Guide
| Scenario | Tool | Why |
|---|---|---|
| Recurring syncs or large directories | rsync -avzP |
Delta sync, compression, resume, progress |
| Quick one-off file copy | scp or rsync |
scp is simpler; rsync is more capable |
| Interactive file browsing | sftp |
Tab completion, directory navigation |
| High-bandwidth WAN transfers | Specialized tools (Globus) | SSH buffer limits reduce WAN throughput |
Common Mistakes
| Mistake | Correct Pattern |
|---|---|
| Using RSA keys for new setups | Generate Ed25519 keys -- faster, smaller, and equally secure |
Using scp for large or recurring transfers |
Use rsync -avzP for compression, progress, and resumable delta sync |
| Typing passphrase repeatedly during sessions | Use ssh-agent and ssh-add to cache keys for the session |
| Connecting through multiple hops with nested SSH | Use -J (ProxyJump) for clean bastion/jump host traversal |
Running interactive commands without -t flag |
Use ssh -t user@host "htop" to allocate a pseudo-terminal |
Using ForwardAgent yes through untrusted hosts |
Use ProxyJump instead -- agent forwarding exposes keys to compromised hosts |
Setting ControlPath without %h, %p, %r |
Include all three tokens to ensure unique sockets per connection |
| Disabling host key checking globally | Only use StrictHostKeyChecking no in trusted, ephemeral environments |
Not using IdentitiesOnly yes |
Prevents offering every loaded key to every server |
Security Checklist
- Generate Ed25519 keys with strong passphrases
- Set
PasswordAuthentication noon servers - Set
PermitRootLogin prohibit-passwordorno - Use
IdentitiesOnly yesin client config - Restrict keys with
command=andfrom=inauthorized_keys - Use FIDO2 hardware keys (
ed25519-sk) for high-security environments - Install
fail2banon servers to block brute-force attempts - Consider SSH certificate authentication for fleet management
Delegation
- Server inventory discovery and connection testing: Use
Exploreagent - Multi-host deployment or bulk file transfers: Use
Taskagent - Network architecture and bastion host planning: Use
Planagent
References
Installationen
Sicherheitsprüfung
Quellcode ansehen
oakoss/agent-skills
Mehr aus dieser Quelle
Power your AI Agents with
the best open-source models.
Drop-in OpenAI-compatible API. No data leaves Europe.
Explore Inference APIGLM
GLM 5
$1.00 / $3.20
per M tokens
Kimi
Kimi K2.5
$0.60 / $2.80
per M tokens
MiniMax
MiniMax M2.5
$0.30 / $1.20
per M tokens
Qwen
Qwen3.5 122B
$0.40 / $3.00
per M tokens
So verwenden Sie diesen Skill
Install ssh-remote by running npx skills add oakoss/agent-skills --skill ssh-remote in your project directory. Führen Sie den obigen Installationsbefehl in Ihrem Projektverzeichnis aus. Die Skill-Datei wird von GitHub heruntergeladen und in Ihrem Projekt platziert.
Keine Konfiguration erforderlich. Ihr KI-Agent (Claude Code, Cursor, Windsurf usw.) erkennt installierte Skills automatisch und nutzt sie als Kontext bei der Code-Generierung.
Der Skill verbessert das Verständnis Ihres Agenten für ssh-remote, und hilft ihm, etablierte Muster zu befolgen, häufige Fehler zu vermeiden und produktionsreifen Code zu erzeugen.
Was Sie erhalten
Skills sind Klartext-Anweisungsdateien — kein ausführbarer Code. Sie kodieren Expertenwissen über Frameworks, Sprachen oder Tools, das Ihr KI-Agent liest, um seine Ausgabe zu verbessern. Das bedeutet null Laufzeit-Overhead, keine Abhängigkeitskonflikte und volle Transparenz: Sie können jede Anweisung vor der Installation lesen und prüfen.
Kompatibilität
Dieser Skill funktioniert mit jedem KI-Coding-Agenten, der das skills.sh-Format unterstützt, einschließlich Claude Code (Anthropic), Cursor, Windsurf, Cline, Aider und anderen Tools, die projektbezogene Kontextdateien lesen. Skills sind auf Transportebene framework-agnostisch — der Inhalt bestimmt, für welche Sprache oder welches Framework er gilt.
Chat with 100+ AI Models in one App.
Use Claude, ChatGPT, Gemini alongside with EU-Hosted Models like Deepseek, GLM-5, Kimi K2.5 and many more.