SSH Key Generator and Config Builder

Create OpenSSH key pairs locally with WebCrypto, protect them with a passphrase, inspect existing keys and write a tidy ssh config with ProxyJump.

Работает в вашем браузере. Файлы никогда не покидают устройство. Как это проверить

…

Как пользоваться

  1. 1
    Pick the key type

    In Generate key choose Ed25519, ECDSA or RSA and enter a comment and file name.

  2. 2
    Set a passphrase

    Type it twice, choose KDF rounds, then press Generate key pair.

  3. 3
    Save both files

    Download the private key and the .pub file and move them to ~/.ssh with chmod 600.

  4. 4
    Add hosts

    In ssh config press + Host and fill alias, HostName, User, IdentityFile and ProxyJump.

  5. 5
    Download the config

    Copy or download the generated file and save it as ~/.ssh/config.

  6. 6
    Restrict a key

    In authorized_keys add from= addresses or a forced command and copy the line to the server.

Об этом инструменте

SSH keys are how developers log in to servers, push to GitHub and run deployments, yet the tools to make them live in a terminal that not everyone has at hand, for example on a locked-down work laptop or a Chromebook. This generator creates the same files ssh-keygen writes, directly in the browser with the Web Cryptography API. Ed25519 is the default because it is short, fast and recommended by GitHub and most guides; ECDSA P-256 and RSA 2048 to 4096 bits are there for older systems. With a passphrase the private key is encrypted exactly like OpenSSH does it, with bcrypt_pbkdf and AES-256 in counter mode, so ssh, ssh-add and Git read it without conversion. The same page builds a commented ~/.ssh/config with host aliases, ProxyJump bastions and port forwards, and an authorized_keys line with restrictions.

Who this is for

Developers setting up a new machine, students who need a key for a Git host, sysadmins who want a quick key for a bastion, and anyone who manages more than three servers and keeps typing long ssh commands.

Generating a key pair

Choose Ed25519, ECDSA P-256 or RSA (3072 or 4096 bits; 2048 only for legacy systems), a comment such as you@laptop, and the file name. An optional passphrase is typed twice. KDF rounds sets how slow it is to guess the passphrase: 16 is the ssh-keygen default, higher numbers take longer to unlock. The result shows the public key line, the SHA256 fingerprint, the randomart picture ssh-keygen prints, and download buttons for both files. RSA keys can also be saved as a PKCS#8 PEM for tools that do not read the OpenSSH format. Private keys are never written to the project file or to local storage.

Building ~/.ssh/config

Each host card has the alias you type, HostName, User, Port, IdentityFile, ProxyJump, ServerAliveInterval, IdentitiesOnly, AddKeysToAgent, ForwardAgent, LocalForward lines and free options. A global block adds AddKeysToAgent, UseKeychain on macOS, keep-alive and HashKnownHosts under Host * at the end, because ssh uses the first value it finds. Existing config files can be imported so you can tidy and extend them.

authorized_keys restrictions

Paste a public key and add from= address limits, a forced command, an expiry date or the restrict keyword. The line is ready to append on the server, which is useful for backup and deploy keys that should do only one thing.

Inspect and change passphrases

Paste or open a key file to see its type, size, comment, encryption and fingerprint. With the current passphrase you can download the same key with a new passphrase, or with none.

Worked example

You create an Ed25519 key named id_ed25519_work with a passphrase, then add three hosts: bastion at 203.0.113.10, db at 10.0.2.15 with ProxyJump bastion and LocalForward 5433 localhost:5432, and github with IdentityFile ~/.ssh/id_ed25519_work. Afterwards ssh db opens the database server through the bastion, and psql on port 5433 reaches the remote database.

Limits

Ed25519 in WebCrypto needs a recent browser (Chrome 137, Firefox 129, Safari 17 or newer); use ECDSA or RSA otherwise. Security keys (sk- types), certificates and the older PEM private-key format are not created here. A key generated in a browser is only as safe as that device, so do not use a shared or untrusted computer.

Пример с решением

Ed25519 key + bastion host + db host with ProxyJump bastion and LocalForward 5433 localhost:5432 → ssh db works through the jump host.

Коротко

Часто задаваемые вопросы

Are the keys generated on a server?

No. The browser's Web Crypto API creates them on your device, and the page never sends them anywhere.

Which key type should I choose?

Ed25519 for almost everything. Choose RSA 3072 or 4096 only for old servers or appliances that do not accept Ed25519.

Will ssh-keygen accept the files?

Yes. The private key uses the openssh-key-v1 format with bcrypt_pbkdf and aes256-ctr, the same as ssh-keygen; ssh-keygen -y -f prints the matching public key.

What does IdentitiesOnly do?

It makes ssh offer only the key named in IdentityFile instead of every key in your agent, which avoids "Too many authentication failures".

Is ForwardAgent safe?

Only on hosts you fully trust, because an administrator there can use your agent while you are connected. ProxyJump is the safer way through a bastion.

How do I copy the public key to a server?

Run ssh-copy-id -i ~/.ssh/name.pub user@server, or append the public key line to ~/.ssh/authorized_keys on the server.

Полностью бесплатноБез оплаты и регистрации
Файлы остаются приватнымиВсё работает в вашем браузере
Просто на вашем языкеДоступно на многих языках