SSH Config Generator
~/.ssh/config
Add these lines to ~/.ssh/config (on Windows: C:\Users\you\.ssh\config), then connect with ssh .
SSH Config Generator
Typing ssh -i ~/.ssh/key -p 65002 user@203.0.113.10 every time is tedious. An entry in ~/.ssh/config lets you type ssh myserver instead. Fill in the details for each server, including an optional jump host (bastion), keep-alive and agent forwarding, and copy the ready-made configuration.
How to use SSH Config Generator
- Enter an alias and the server's host name or IP, user, port and key file.
- Add a jump host if you connect through a bastion server.
- Tick the options you want, such as keep-alive or using only the named key.
- Copy the block into ~/.ssh/config (create the file if it does not exist), then run ssh alias.
When it comes in handy
- Managing several servers, hosting accounts and Git remotes.
- Connecting through a bastion host with ProxyJump.
- Avoiding "Too many authentication failures" with IdentitiesOnly.
Frequently asked questions
Where is the config file on Windows?
Is agent forwarding safe?
Related guides
-
How to Fix Invalid JSON: The 8 Most Common Errors
Trailing commas, single quotes, unquoted keys and the other mistakes that break JSON, with before-and-after examples and a quick way to find the problem.
-
Unix Timestamps Explained: Epoch Time for Humans
What a Unix timestamp is, why it counts from 1970, seconds vs milliseconds, time zones, the year 2038 problem, and how to convert timestamps quickly.
-
JSON vs XML vs CSV: Choosing the Right Data Format for Your Project
JSON, XML and CSV each solve a different problem. Here is how to pick the right one, plus tools to convert and validate between them.