SSH Key Generator

Build a local ssh-keygen command for Ed25519 or RSA 4096, with safe-use guidance. This page does not create key files or handle private keys.

Build a local ssh-keygen command

An SSH key pair has a private key and a public key. This helper builds a command for your local OpenSSH terminal; it does not generate or handle key files.

This helper uses POSIX-style single-quoted command syntax (also supported by PowerShell); it is not intended for Windows Command Prompt (`cmd.exe`).

Never paste a private key into a website. Review the command before running it.

Choose command options

Key type

Up to 64 ASCII letters, numbers, dots, underscores, @, +, or hyphens.

ssh-keygen -t ed25519

Use your SSH keys safely

  1. Review and run the command in a terminal on your own computer.
  2. `ssh-keygen` will ask where to save the key files. Check the path carefully; `ssh-keygen` may ask before replacing an existing file. Do not confirm unless you intend to replace that key.
  3. OpenSSH asks for a passphrase locally. Choose a strong one for a user key; this page cannot require one, and an empty passphrase is possible.
  4. Restrict access to the private-key file with the appropriate permissions for your operating system (for example, use chmod 600 <private-key-file>on Unix-like systems). Agent and keychain behavior also varies by OS.
  5. Add or share only the matching `.pub` public key with a service. Never upload the private key.

This page uses your comment only to display the command. It does not save or send that comment from this tool, and it never runs the command. The surrounding site may load shared services. This tool cannot guarantee the security of the computer where you run the command.

Frequently asked questions

Does this page generate an SSH key pair?

No. It builds an `ssh-keygen` command; OpenSSH on your computer creates the key files when you run it.

Which key should I choose?

Ed25519 is a suitable default for modern OpenSSH systems. Choose RSA 4096 only when your environment requires RSA compatibility.

Which key do I give a server or Git host?

Share the public key ending in `.pub`. Keep the private key and its passphrase to yourself.

Infinio Tools
© 2026 Infinio Labs