local-security
Installation
SKILL.md
Treat the developer workstation as a critical supply chain node. A compromised dev machine means compromised code, credentials, and infrastructure access. Follow these workflows to harden each surface.
SSH Hardening Workflow
- Generate an Ed25519 key per service. One key for GitHub, another for production servers, another for cloud.
- Protect the private key with a passphrase. Load it into
ssh-agentso you type it once. - Lock permissions on the
.sshdirectory and all key files. - Configure
~/.ssh/configto use ProxyJump instead of agent forwarding. - Rotate keys annually. Remove old public keys from every authorized service.
# Step 1: Generate a dedicated key
ssh-keygen -t ed25519 -C "github@workstation" -f ~/.ssh/id_ed25519_github
# Step 2: Add to agent with passphrase caching
ssh-add ~/.ssh/id_ed25519_github