# Ctf Remote

> Provides SSH and remote access techniques for CTF challenges. Use when connecting to remote Kali Linux or other CTF infrastructure.

- Skill: `konggithubdev/ctf-remote` (Agent Skill, multi-file: 3 files)
- Install (CLI): `npx skillmds@latest add konggithubdev/ctf-remote`
- Raw SKILL.md: https://api.skillmd.com/api/skills/konggithubdev/ctf-remote/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- License: MIT
- Author: konggithubdev (https://skillmd.com/u/konggithubdev)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/konggithubdev/ctf-remote

---


# CTF Remote Access (SSH)

This skill provides a standard way to connect to your remote CTF environment (Kali Linux).

## Configuration

**Host:** `kong@myhost`  
**Hostname:** `192.168.6.128`  
**IdentityFile:** `C:\Users\kongw\.ssh\id_ed25519`  
**Options:** `-X` (X11 Forwarding)

## Usage

### Connect to Shell
```bash
ssh -X -i C:\Users\kongw\.ssh\id_ed25519 -o IdentitiesOnly=yes kong@192.168.6.128
```

### Run a Command
```bash
ssh -X -i C:\Users\kongw\.ssh\id_ed25519 -o IdentitiesOnly=yes kong@192.168.6.128 "ls -la"
```

### Transfer Files (SCP)
```bash
# Upload
scp -i C:\Users\kongw\.ssh\id_ed25519 local_file kong@192.168.6.128:/home/kong/
# Download
scp -i C:\Users\kongw\.ssh\id_ed25519 kong@192.168.6.128:/home/kong/remote_file .
```

### Remote Downloads (On Kali)
```bash
# Use wget on remote
ssh -i C:\Users\kongw\.ssh\id_ed25519 kong@192.168.6.128 "wget https://example.com/file -O /home/kong/file"
# Use curl on remote
ssh -i C:\Users\kongw\.ssh\id_ed25519 kong@192.168.6.128 "curl -L https://example.com/file -o /home/kong/file"
```

## Quick Reference

- **X11 Forwarding:** Enabled via `-X`. Use this to run GUI tools from Kali on your local machine.
- **Identity File:** Ensure `C:\Users\kongw\.ssh\id_ed25519` exists and has correct permissions.
- **Persistence:** Use `tmux` or `screen` on the remote host for persistent sessions.

---

### Automated Connection Helper

You can use the provided SSH config snippet to simplify commands. See [resources/ssh_config](resources/ssh_config).

