← All text tools

SSH Config File Generator

Build ~/.ssh/config host entries with HostName, User, Port, IdentityFile and ProxyJump, plus keepalive defaults, and copy a tidy file.

  • Free
  • No sign-up
  • Works on any device

About SSH Config File Generator

Instead of typing ssh -p 2222 -i ~/.ssh/key [email protected] every time, an entry in ~/.ssh/config lets you write ssh web. This generator builds the entries for up to four hosts: the alias, HostName, User, Port, IdentityFile and ProxyJump for reaching a machine through a bastion. It can finish the file with a Host * block carrying ServerAliveInterval, ServerAliveCountMax, AddKeysToAgent and IdentitiesOnly. It orders specific hosts before the defaults, because OpenSSH uses the first value it finds, and warns when a jump host does not match any alias.

How to use SSH Config File Generator

  1. Choose how many hosts you need and fill in alias, address, user and port for each.
  2. Add an IdentityFile or a ProxyJump host where the machine sits behind a bastion.
  3. Copy the file into ~/.ssh/config and connect with ssh and the alias.

Why use this tool?

Also known as

Frequently asked questions

What does ProxyJump do?

It tells ssh to connect through another host first, so ssh web goes via the bastion without an extra command. It replaces older ProxyCommand tricks and needs OpenSSH 7.3 or newer.

Why does the order of hosts in the config file matter?

For each option ssh uses the first value it finds while reading the file from the top. Put specific Host entries first and the general Host * defaults last.

Where does the config file live and what permissions does it need?

It is ~/.ssh/config for one user, or /etc/ssh/ssh_config for everyone. Make your own file private with chmod 600 or ssh may refuse to use it.

Is SSH Config File Generator free?

Yes. SSH Config File Generator on Toolipedia is free to use, with no sign-up and no watermark.

Is it safe to use?

Yes. Everything is worked out in your browser, and nothing you enter is sent to our server.

Does it work on my phone?

Yes. It works in any modern browser on Android and iPhone, as well as on tablets and computers. There's nothing to install.

Do I need an account?

No. Just open the page and use the tool. There's no sign-up and no email needed.

Can I put SSH Config File Generator on my own website?

Yes. Use the Embed on your site button under the tool to copy a short piece of code and paste it into your page. It is free, needs no account, and the tool keeps working inside your page.

Related tools