encyclopegia.org

ssh-keygen

ssh-keygen is a standard component of the Secure Shell (SSH) protocol suite found on Unix, Unix-like and Microsoft Windows computer systems used to establish secure shell sessions between remote computers over insecure networks, through the use of various cryptographic techniques. The ssh-keygen utility is used to generate, manage, and convert authentication keys.

ssh-keygen is a standard component of the Secure Shell (SSH) protocol suite found on Unix, Unix-like and Microsoft Windows computer systems used to establish secure shell sessions between remote computers over insecure networks, through the use of various cryptographic techniques. The ssh-keygen utility is used to generate, manage, and convert authentication keys. ==Overview== ssh-keygen is able to generate a key using one of three different digital signature algorithms. With the help of the ssh-keygen tool, a user can create passphrase keys for any of these key types. To provide for unattended operation, the passphrase can be left empty, albeit at increased risk. These keys differ from keys used by the related tool GNU Privacy Guard. OpenSSH-based client and server programs have been included in Windows 10 since version 1803. The SSH client and key agent are enabled and available by default and the SSH server is an optional Feature-on-Demand. ==Key formats supported== Example: ssh-keygen -t rsa Originally, with SSH protocol version 1 (now deprecated) only the RSA algorithm was supported. As of 2016, RSA is still considered strong, but the recommended key length has increased over time. The SSH protocol version 2 additionally introduced support for the DSA algorithm. DSA is now considered weak and was disabled in OpenSSH 7.0. Subsequently, OpenSSH added support for a third digital signature algorithm, ECDSA (this key format no longer uses the previous PEM file format for private keys, nor does it depend upon the OpenSSL library to provide the cryptographic implementation). A fourth format is supported using Ed25519, originally developed by independent cryptography researcher Daniel J. Bernstein. ==Command syntax== The syntax of the ssh-keygen command is as follows: ssh-keygen [options] Some important options of the ssh-keygen command are as follows: ==Files used by the ssh-keygen utility== The ssh-keygen utility generates files for storing public and private keys. Note : they are stored in $HOME/.ssh/ as follows: ==References== ==External links== Generating an SSH key, a guide from GitHub ssh-keygen manual from the OpenBSD project Linux man page from die.net Generating SSH Key Pair on Linux and Mac from ifixlinux.com Basic overview of SSH Keys from SSH How to Use ssh-keygen to Generate a New SSH Key? from SSH What is a Git SSH Key? from Atlassian How to Create an SSH Key in Linux: Easy Step-by-Step Guide from DigitalOcean Getting Started with Oracle Cloud at Customer on Oracle Git on the Server - Generating Your SSH Public Key on Git-SCM

References

  1. What's new for the Command Line in Windows 10 version 1803 . · retrieved 2026-05-24 · rev 1355988682
    Cite this reference

    MLA "What's new for the Command Line in Windows 10 version 1803 ." 2026-05-24. https://en.wikipedia.org/w/index.php?oldid=1355988682. Accessed 24 November 2026.

    Chicago "What's new for the Command Line in Windows 10 version 1803 ." 2026-05-24. https://en.wikipedia.org/w/index.php?oldid=1355988682.

    APA encyclopegia.org. (2026). What's new for the Command Line in Windows 10 version 1803 . Retrieved November 24, 2026, from https://en.wikipedia.org/w/index.php?oldid=1355988682

  2. Using the OpenSSH Beta in Windows 10 Fall Creators . · retrieved 2026-05-24 · rev 1355988682
    Cite this reference

    MLA "Using the OpenSSH Beta in Windows 10 Fall Creators ." 2026-05-24. https://en.wikipedia.org/w/index.php?oldid=1355988682. Accessed 24 November 2026.

    Chicago "Using the OpenSSH Beta in Windows 10 Fall Creators ." 2026-05-24. https://en.wikipedia.org/w/index.php?oldid=1355988682.

    APA encyclopegia.org. (2026). Using the OpenSSH Beta in Windows 10 Fall Creators . Retrieved November 24, 2026, from https://en.wikipedia.org/w/index.php?oldid=1355988682

  3. SSH-keygen(1) - Linux manual page . · retrieved 2026-05-24 · rev 1355988682
    Cite this reference

    MLA "SSH-keygen(1) - Linux manual page ." 2026-05-24. https://en.wikipedia.org/w/index.php?oldid=1355988682. Accessed 24 November 2026.

    Chicago "SSH-keygen(1) - Linux manual page ." 2026-05-24. https://en.wikipedia.org/w/index.php?oldid=1355988682.

    APA encyclopegia.org. (2026). SSH-keygen(1) - Linux manual page . Retrieved November 24, 2026, from https://en.wikipedia.org/w/index.php?oldid=1355988682

  4. Withdrawn NIST Technical Series Publication . · retrieved 2026-05-24 · rev 1355988682
    Cite this reference

    MLA "Withdrawn NIST Technical Series Publication ." 2026-05-24. https://en.wikipedia.org/w/index.php?oldid=1355988682. Accessed 24 November 2026.

    Chicago "Withdrawn NIST Technical Series Publication ." 2026-05-24. https://en.wikipedia.org/w/index.php?oldid=1355988682.

    APA encyclopegia.org. (2026). Withdrawn NIST Technical Series Publication . Retrieved November 24, 2026, from https://en.wikipedia.org/w/index.php?oldid=1355988682

  5. How Hackers Can Exploit Weak ECDSA Signatures . 26 July 2021. retrieved 30 July 2024 · retrieved 2026-05-24 · rev 1355988682
    Cite this reference

    MLA "How Hackers Can Exploit Weak ECDSA Signatures . 26 July 2021. retrieved 30 July 2024." How Hackers Can Exploit Weak ECDSA Signatures. 2026-05-24. https://en.wikipedia.org/w/index.php?oldid=1355988682. Accessed 24 November 2026.

    Chicago "How Hackers Can Exploit Weak ECDSA Signatures . 26 July 2021. retrieved 30 July 2024." How Hackers Can Exploit Weak ECDSA Signatures. 2026-05-24. https://en.wikipedia.org/w/index.php?oldid=1355988682.

    APA How Hackers Can Exploit Weak ECDSA Signatures. (2026). How Hackers Can Exploit Weak ECDSA Signatures . 26 July 2021. retrieved 30 July 2024. Retrieved November 24, 2026, from https://en.wikipedia.org/w/index.php?oldid=1355988682

  6. Comparing SSH Keys - RSA, DSA, ECDSA, or EdDSA? . · retrieved 2026-05-24 · rev 1355988682
    Cite this reference

    MLA "Comparing SSH Keys - RSA, DSA, ECDSA, or EdDSA? ." 2026-05-24. https://en.wikipedia.org/w/index.php?oldid=1355988682. Accessed 24 November 2026.

    Chicago "Comparing SSH Keys - RSA, DSA, ECDSA, or EdDSA? ." 2026-05-24. https://en.wikipedia.org/w/index.php?oldid=1355988682.

    APA encyclopegia.org. (2026). Comparing SSH Keys - RSA, DSA, ECDSA, or EdDSA? . Retrieved November 24, 2026, from https://en.wikipedia.org/w/index.php?oldid=1355988682

Cite this article

MLA

"ssh-keygen." encyclopegia.org, 2026, https://encyclopegia.org/wiki/ssh-keygen. Accessed 24 November 2026.

Chicago

"ssh-keygen." encyclopegia.org. Accessed November 24, 2026. https://encyclopegia.org/wiki/ssh-keygen.

APA

encyclopegia.org. (2026). ssh-keygen. Retrieved November 24, 2026, from https://encyclopegia.org/wiki/ssh-keygen

Accessed November 24, 2026 · CC BY-SA 4.0 · citation page · JSON

CC BY-SA 4.0 · tier1-factual · https://en.wikipedia.org/w/index.php?oldid=1355988682 · 0.55 · snapshot ssh-keygen-853083-c3af5c50066d3e23 · QID Q7586641

Cite · JSON · Search

Related services and records

Services

  • Estate — measured countries, lanes and facts
  • Intel — live corroborated events
  • Legal — statutes, cases and citations
  • Encyclopedia — articles with inline sources
  • Space — launches, satellites and orbits
  • Search — federated search and reports
  • Pass — passport account and SSO
  • Corpora — read-only corpus origins
  • e01 — self-hosted corpora and tools

Text and metadata only; each target carries its own sources. Missing data is published as no-data, never estimated.