SSH Command Generator
Generate SSH connection commands - custom port, identity file, jump host, or port forwarding - ready to copy into your terminal.
Choose what kind of SSH connection you need - basic connect, custom port, jump host, or port forwarding - this tool builds the exact command.
Never paste a private key, passphrase, or password into this or any tool - only hostnames, usernames, ports, and file paths are needed here.
Never paste a private key or password into this or any tool - only usernames, hostnames, ports, and file paths are needed here.
What Does This Tool Generate?
SSH command-line flags for common connection patterns: connecting to a non-default port, specifying an identity (key) file, connecting through a jump/bastion host, or forwarding a port (locally, remotely, or as a SOCKS proxy).
Why Use This Tool?
SSH's port-forwarding flags in particular (-L, -R, -D) are easy to mix up, and jump-host syntax has changed over the years (-J is the modern replacement for chained -o ProxyCommand). This tool generates the current, correct syntax.
How to Use It
- Choose a connection type: basic connect, custom port, identity file, jump host, local forwarding, remote forwarding, or dynamic (SOCKS) forwarding.
- Fill in the relevant host, port, and path fields.
- Copy the generated command and run it in your own terminal.
Important Notes
This tool only ever asks for hostnames, usernames, ports, and file paths - never paste an actual private key, passphrase, or password into this or any web tool.