SSH Config Generator for Git

Easily create a .ssh/config file to manage SSH keys and authentication for one or more remote git repositories. Follow the steps below to add your hosts and generate a ready-to-use config file.

Step 1: Add Git Hosts

For each remote git repository, enter a unique Host alias (e.g. github-work), the HostName (e.g. github.com), your SSH User (usually git), and the path to your IdentityFile (private key). You can add multiple hosts for different repos or services.

How to Use Your SSH Config for Git

  • Place the generated config file in your ~/.ssh/ directory.
  • Set correct permissions: chmod 600 ~/.ssh/config
  • Use the Host alias in your git remote URL, e.g. git@github-work:username/repo.git
  • Each host entry can use a different SSH key for different GitHub, GitLab, Bitbucket, or private servers.
  • Never share your private keys. Keep your .ssh/config and keys secure.

FAQs

The .ssh/config file lets you define settings for connecting to remote servers via SSH, including aliases, keys, and options. For git, it helps you manage multiple accounts or keys easily.

Add a Host entry for each remote (e.g. github-work, github-personal) with its own IdentityFile. Use the Host alias in your git remote URL.

Yes. All config generation happens in your browser. No data is sent or stored anywhere.

Set permissions to 600: chmod 600 ~/.ssh/config. This keeps your config private.