sickn33/antigravity-awesome-skills/ssh-penetration-testing
- community
Checking that the SKILL.md file is still in the repository.
Conduct comprehensive SSH security assessments including enumeration, credential attacks, vulnerability exploitation, tunneling techniques, and post-exploitation activities. This skill covers the complete methodology for testing SSH service security.
Install
npx vskill@latest install sickn33/antigravity-awesome-skills/ssh-penetration-testingSKILL.md
⚠️ AUTHORIZED USE ONLYThis skill is for educational purposes or authorized security assessments only.You must have explicit, written permission from the system owner before using this tool.Misuse of this tool is illegal and strictly prohibited.Mandatory confirmation gateBefore any command that probes, exploits, changes, persists on, extracts data from, or attempts credential access against a target, ask for the exact target URL, IP, account, or resource and confirmation of written authorization and permitted scope.Show the exact command(s), explain their expected effect, and wait for explicit confirmation in the current conversation.Without that confirmation, remain read-only and provide defensive guidance only. Prefer a sandbox, disposable VM, or controlled lab.
SSH Penetration Testing
Purpose
Conduct comprehensive SSH security assessments including enumeration, credential attacks, vulnerability exploitation, tunneling techniques, and post-exploitation activities. This skill covers the complete methodology for testing SSH service security.
Prerequisites
Required Tools
- Nmap with SSH scripts
- Hydra or Medusa for brute-forcing
- ssh-audit for configuration analysis
- Metasploit Framework
- Python with Paramiko library
Required Knowledge
- SSH protocol fundamentals
- Public/private key authentication
- Port forwarding concepts
- Linux command-line proficiency
Outputs and Deliverables
- SSH Enumeration Report - Versions, algorithms, configurations
- Credential Assessment - Weak passwords, default credentials
- Vulnerability Assessment - Known CVEs, misconfigurations
- Tunnel Documentation - Port forwarding configurations
Core Workflow
Phase 1: SSH Service Discovery
Identify SSH services on target networks:
Phase 2: SSH Enumeration
Gather detailed information about SSH services:
Phase 3: SSH Configuration Auditing
Identify weak configurations:
Key configuration weaknesses to identify:
- Weak key exchange algorithms (diffie-hellman-group1-sha1)
- Weak ciphers (arcfour, 3des-cbc)
- Weak MACs (hmac-md5, hmac-sha1-96)
- Deprecated protocol versions
Phase 4: Credential Attacks
Use only approved synthetic/test accounts, a bounded attempt/rate/time budget and explicit lockout/stop conditions. Recovered private keys, password cracking, persistence and pivoting each need separate scope. Do not print credentials or read unrelated users' histories. Host identity must be verified out of band; never disable host-key validation to make a test connect.
Brute-Force with Hydra
Brute-Force with Medusa
Password Spraying
Phase 5: Key-Based Authentication Testing
Test for weak or exposed keys:
Check for exposed keys:
Phase 6: Vulnerability Exploitation
Search for known vulnerabilities:
Phase 7: SSH Tunneling and Port Forwarding
Local Port Forwarding
Forward local port to remote service:
Remote Port Forwarding
Expose local service to remote network:
Dynamic Port Forwarding (SOCKS Proxy)
Create SOCKS proxy for network pivoting:
ProxyJump (Jump Hosts)
Chain through multiple SSH servers:
Phase 8: Post-Exploitation
Activities after gaining SSH access:
Phase 9: Custom SSH Scripts with Paramiko
Python-based SSH automation:
Phase 10: Metasploit SSH Modules
Use Metasploit for comprehensive SSH testing:
Quick Reference
SSH Enumeration Commands
| Command | Purpose | |
|---|---|---|
nc <host> 22 | Banner grabbing | |
ssh-audit <host> | Configuration audit | |
| Select reviewed individual NSE scripts | Do not run a wildcard including unreviewed intrusive scripts | |
searchsploit openssh | Find exploits |
Brute-Force Options
| Tool | Command | |
|---|---|---|
| Hydra | hydra -l user -P pass.txt ssh://host | |
| Medusa | medusa -h host -u user -P pass.txt -M ssh | |
| Ncrack | ncrack -p 22 --user admin -P pass.txt host | |
| Metasploit | use auxiliary/scanner/ssh/ssh_login |
Port Forwarding Types
| Type | Command | Use Case | |
|---|---|---|---|
| Local | -L 8080:target:80 | Access remote services locally | |
| Remote | -R 8080:localhost:80 | Expose local services remotely | |
| Dynamic | -D 1080 | SOCKS proxy for pivoting |
Common SSH Ports
| Port | Description | |
|---|---|---|
| 22 | Default SSH | |
| 2222 | Common alternate | |
| 22222 | Another alternate | |
| 830 | NETCONF over SSH |
Constraints and Limitations
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/ssh-penetration-testing/SKILL.md
Popularity
- Repository stars
- 27,278
- Repository forks
- 4,603
- Repository npm downloads, 7 days
- 11,753
- 7-day trend score
- 72
Stars and forks are for the whole GitHub repository, not this skill alone. Downloads are for the repository's npm package. Refreshed 16 Mar 2026, 7 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/sickn33/antigravity-awesome-skills/ssh-penetration-testing)