SSH Config Generator

Presets

Global Defaults (Host *)

Hosts

Host Configuration

Port Forwarding

SSH Command

ssh -i ~/.ssh/id_ed25519 my-server

SSH Config Preview

# Global defaults
Host *
    ServerAliveInterval 60
    ServerAliveCountMax 3
    StrictHostKeyChecking ask

Host my-server
    HostName 192.168.1.100
    User admin
    IdentityFile ~/.ssh/id_ed25519

What This Tool Does

SSH Config Generator is built for deterministic developer and agent workflows.

Generate SSH config files with jump hosts, port forwarding, and identity keys — visual editor with presets.

Use How to Use for execution steps and FAQ for constraints, policies, and edge cases.

Last updated:

This tool is provided as-is for convenience. Output should be verified before use in any production or critical context.

Agent Invocation

Best Path For Builders

Browser workflow

Runs instantly in the browser with private local processing and copy/export-ready output.

Browser Workflow

This tool is optimized for instant in-browser execution with local data handling. Run it here and copy/export the output directly.

/ssh-config-generator/

For automation planning, fetch the canonical contract at /api/tool/ssh-config-generator.json.

How to Use SSH Config Generator

  1. 1

    Add SSH hosts

    Click 'Add Host' and enter a hostname alias, IP address, username, and port. The generator creates individual Host blocks.

  2. 2

    Configure authentication

    Specify identity file paths, key types (RSA, ED25519), and backup authentication methods (password, agent).

  3. 3

    Setup jump hosts

    For machines behind a bastion, add a ProxyJump field pointing to the intermediate host. The tool auto-chains configurations.

  4. 4

    Enable port forwarding

    Add LocalForward (expose remote port locally) or RemoteForward (expose local port on remote). Set up SOCKS proxies for tunneling.

  5. 5

    Export and deploy

    Copy the config to ~/.ssh/config. The generator validates syntax and shows connection command examples for testing.

Frequently Asked Questions

Where does the SSH config file go?
Save as ~/.ssh/config on macOS/Linux or C:\Users\{name}\.ssh\config on Windows. SSH reads this file automatically when you connect.
What is ProxyJump?
ProxyJump lets you connect through an intermediate server (bastion/jump host) automatically. Instead of SSH-ing to the bastion first, SSH chains the connections transparently.
Can I set up port forwarding?
Yes, configure Local (-L for accessing remote services locally), Remote (-R for exposing local services remotely), and Dynamic (-D for SOCKS proxy) port forwarding.
Can I import my existing SSH config?
Yes, paste your current ~/.ssh/config content to populate the form. Edit entries visually and regenerate the configuration.
Is this tool secure?
Your SSH config is generated entirely in your browser. No data is sent to any server. Important: never paste private keys into any online tool — this tool only handles config files.