Zest.

Bash: Generate an SSH key

A short, tested Bash example for generate an ssh key. Copy it and adjust the names and paths for your project.

Bash
ssh-keygen -t ed25519 -C "you@example.com"
cat ~/.ssh/id_ed25519.pub        # public key to share
ssh-copy-id user@server          # install it on a server

Find it in Zest

Search for “bash generate an ssh key” in Zest and this example appears above the results, with other matches to choose from. Searches stay private.

More Bash examples

All Bash examples