ssh

Executes remote commands and transfers files over SSH using config aliases.

Updated Sep 14, 2026
One-click install
npx skills add https://github.com/Suge8/skills --skill ssh-suge8
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: ssh
Source: https://github.com/Suge8/skills/tree/main/operations/ssh
Command: npx skills add https://github.com/Suge8/skills --skill ssh-suge8

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Managing multiple servers and routers requires remembering hostnames, ports, and credentials, and file transfers often fail on minimal systems like OpenWrt that lack sftp-server. This Skill standardizes authorized SSH operations by using aliases from ~/.ssh/config. ## Core Features & Use Cases - Alias-Based Connections: Connect to servers and routers using aliases defined in ~/.ssh/config, with ~/.ssh/AGENTS.md as the host index. - Remote Command Execution: Run commands on remote hosts, e.g. ssh ALIAS 'uname -a; pwd', and inspect effective config with ssh -G ALIAS. - File Transfer Without scp: Pipe files via stdin (cat local | ssh ALIAS 'cat > /remote/path') or stream tar archives, avoiding sftp-server dependencies on OpenWrt. - Use Case: You need to deploy a config file to an OpenWrt router. Instead of scp failing due to missing sftp-server, stream the file over SSH and verify with a remote command. ## Quick Start Use the ssh skill to connect to my router alias and run uname -a to verify the connection.

Frequently Asked Questions about ssh

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I run remote commands over SSH using config aliases?▼

Run remote commands with ssh ALIAS 'command', where ALIAS is defined in ~/.ssh/config. Use ssh -G ALIAS to inspect the effective configuration for that host before connecting.

How to transfer files over SSH without scp or sftp?▼

Pipe file content through stdin: cat local | ssh ALIAS 'cat > /remote/path'. For directories, stream a tar archive: tar -C localdir -cf - . | ssh ALIAS 'tar -C /remote/dir -xf -'.

Why does scp fail on OpenWrt routers?▼

OpenWrt often lacks the sftp-server binary, which scp depends on in modern OpenSSH. Transfer files by piping through ssh stdin or streaming tar archives instead.

How do I troubleshoot SSH connection failures?▼

Run ssh -vvv ALIAS 'true' to capture verbose debug output with the original error preserved. Check network reachability separately with nc -vz HOST PORT to isolate connectivity issues from authentication problems.

Where are SSH host aliases defined?▼

Host aliases are defined in ~/.ssh/config, which is the single source of truth for connections. The host index for the agent workflow is maintained in ~/.ssh/AGENTS.md.