Skip to content
Back to skills

Server

BSecurity

Server management operations - SSH login, SCP file upload/download, and SSH key deployment. Use this skill when the user mentions server login, SSH, upload file to server, download from server, copy SSH key, server management, remote access, or SCP operations.

  • 10 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 6, 2026
ai-agentsbashgit

Security analysis

B75/100
  • criticalAccesses sensitive system or user directories

Pro scans all 6 files and shows the line behind each finding

Scanned September 6, 2026

npx -y skills add yanmxa/cc-plugins --skill server --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Server?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Server
[![Security: B — Skills Directory](https://www.skillsdirectory.com/api/skills/yanmxa-server/badge)](https://www.skillsdirectory.com/skills/yanmxa-server)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: server
description: Server management operations - SSH login, SCP file upload/download, and SSH key deployment. Use this skill when the user mentions server login, SSH, upload file to server, download from server, copy SSH key, server management, remote access, or SCP operations.
allowed-tools: [Bash, Read, Write, Edit]
---

# Server Management

Interactive server management with SSH login, SCP file transfer, and SSH key setup. Reads server configuration from a `host` file.

## Host file format

The host file at `${CLAUDE_SKILL_DIR}/scripts/host` defines available servers:

```
name user@server_ip password [port]
```

- **name**: Display name for server selection (e.g., `cloud-user@meng(10.0.11.238)`)
- **user@server_ip**: SSH connection string
- **password**: Server password, or `-1` for SSH key authentication
- **port**: SSH port (default: 22)

Example:
```
my-server admin@192.168.1.100 mypass123 22
prod-box deploy@10.0.0.5 -1
```

## Operations

### Login to server

Interactive server selection and SSH login:

```bash
bash ${CLAUDE_SKILL_DIR}/scripts/server-login.sh
```

Supports both password (via expect) and key-based authentication.

### Upload file to server

Upload a local file or directory to a remote server:

```bash
bash ${CLAUDE_SKILL_DIR}/scripts/server-upload.sh <local_path> <remote_path>
```

### Download file from server

Download a file or directory from a remote server:

```bash
bash ${CLAUDE_SKILL_DIR}/scripts/server-download.sh <remote_path> <local_path>
```

### Copy SSH key to server

Deploy your SSH public key to a server's authorized_keys:

```bash
bash ${CLAUDE_SKILL_DIR}/scripts/server-copy-key.sh
```

This uses `ssh-copy-id` to add `~/.ssh/id_rsa.pub` to the remote server.

## Adding servers

Edit the host file to add new servers:

```bash
echo "new-server user@ip password port" >> ${CLAUDE_SKILL_DIR}/scripts/host
```

Or use `-1` as password for key-based auth:

```bash
echo "new-server user@ip -1" >> ${CLAUDE_SKILL_DIR}/scripts/host
```

## Notes

- The `host` file is gitignored to prevent credential leakage
- Use `-1` as password after copying your SSH key via `server-copy-key.sh`
- All SCP operations support recursive transfer (directories)
- Expects `expect` command to be available for password-based auth

Files in this skill

  • SKILL.md2.2 KB
  • scripts/.gitignore5 B
  • scripts/server-copy-key.sh1.5 KB
  • scripts/server-download.sh1.3 KB
  • scripts/server-login.sh1.3 KB
  • scripts/server-upload.sh1.3 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.