ssh-config-generator
v1.0.0
Published
Interactive SSH config file generator in your terminal. Build ~/.ssh/config blocks with guided questions, plus SSH hardening tips.
Downloads
100
Maintainers
Readme
🔑 SSH Config Generator
Interactive SSH config file generator right in your terminal. Build ~/.ssh/config blocks with guided questions, get SSH hardening tips, and learn key management best practices.
Quick Start
npx ssh-config-generatorFeatures
- 🔑 Config Generator — 5 templates: basic, jump host, tunnel, wildcard, GitHub
- 🛡️ 14 Hardening Tips — critical SSH security best practices with commands
- 📋 5 Useful Snippets — keepalive, multiplexing, SOCKS proxy, reverse tunnel
- 🔐 Key Management Guide — Ed25519 key generation, agent, permissions
- 📖 Common SSH Commands — connect, tunnel, copy, mount, proxy
- 📝 Copy-paste output — ready-to-add config blocks with echo commands
- 🚀 Zero dependencies
Templates
| Template | Description | |----------|-------------| | Basic Server | Simple SSH with key auth | | Jump Host | Connect through a bastion server | | Port Forwarding | Local tunnels for remote services | | Wildcard | Multiple servers, same settings | | GitHub/GitLab | Git hosting SSH configuration |
Usage
$ npx ssh-config-generator
[1] Generate SSH Config
[2] SSH Hardening Tips
[3] Useful Config Snippets
[4] SSH Key Management Guide
[5] Common SSH CommandsShort Alias
npm i -g ssh-config-generator
sshgenMore Tools
- 🛡️
npx server-hardening-checklist— Security Audit - 🔒
npx dargslan-security-quiz— Cybersecurity Quiz - ⚙️
npx dargslan-sysadmin-quiz— SysAdmin Quiz - 🔐
npx linux-permissions-calculator— chmod Calculator - ⏰
npx cron-generator-cli— Cron Expression Generator
Learn More
License
MIT — dargslan.com
