SSH & Keys
SSH Config Builder
SSH Configuration Builder
Use %h for hostname and %p for port
local_port remote_host:remote_port
remote_port local_host:local_port
Local SOCKS proxy port
Tool features
Guided builder
Multiple hosts
Advanced options
Copy or download
What ~/.ssh/config does & how it works
~/.ssh/config is where you stop retyping connection details. Instead of ssh -i ~/.ssh/prod_key -p 2222 deploy@10.0.4.19, you define a Host block once and connect with ssh prod. Every option below the Host line — port, user, key, timeouts, forwarding — applies automatically to that alias.
The same file drives more than convenience. ProxyJump reaches machines that are only accessible through a bastion, LocalForward and DynamicForward set up tunnels that open with the connection, and ServerAliveInterval keeps long sessions from dropping. Anything ssh reads from this file, scp, rsync and git read too.
ssh prod. Wildcards like Host *.internal apply settings to a whole group.ProxyCommand.How to use this tool
Host alias you will actually type — prod, bastion, db-replica — then the real Hostname or IP behind it.Port if the server uses one, and the IdentityFile path for the key that host accepts.~/.ssh/config and run chmod 600 ~/.ssh/config. Test with ssh -v your-alias.Related tools
Frequently asked questions
chmod 600 ~/.ssh/config and chmod 700 ~/.ssh. Second, ordering — SSH applies the first value it finds for each option, so a broad Host * block placed at the top will win over the specific block below it. Put specific hosts first and wildcards last. ssh -v alias shows what is actually being applied.LocalForward opens a port on your machine that tunnels to a host reachable from the server — the usual way to reach an internal database. RemoteForward does the reverse, exposing one of your local ports on the server. DynamicForward turns the connection into a SOCKS proxy that can reach anything the server can.ProxyJump bastion-alias on the inner host's block, where bastion-alias is another Host entry in the same file. SSH connects to the bastion and opens the second hop through it automatically. ProxyJump replaced the older ProxyCommand ssh -W %h:%p ... incantation.ForwardAgent yes lets anyone with root on the remote host use your loaded keys for as long as you are connected. Enable it only for hosts you trust, and prefer ProxyJump when all you actually need is to reach a machine behind another one.Host accepts patterns, so Host *.internal.example.com applies to every matching name, and you can list several patterns on one line. A trailing Host * block is the conventional place for global defaults.~/.ssh/id_ed25519, so no key material is involved at any point.