SSH key generation command¶
The SSH key generation command is the specific ssh-keygen syntax used to create a new SSH key pair, typically for secure authentication with services like [[Git]] platforms (e.g., GitHub).^[600-developer__tools__git__github-sshkey.md]
Command Syntax¶
The standard command to generate a key using the RSA algorithm with 4096 bits is:
ssh-keygen -t rsa -b 4096 -C "your_email@example.com"
^[600-developer__tools__git__github-sshkey.md]
Parameters¶
-t rsa: Specifies the type of key to create, in this case, RSA.^[600-developer__tools__git__github-sshkey.md]-b 4096: Specifies the number of bits in the key to create.^[600-developer__tools__git__github-sshkey.md]-C "your_email@example.com": Provides a comment (usually an email address) to identify the key.^[600-developer__tools__git__github-sshkey.md]
Related Concepts¶
- [[Git]]
- [[SSH]]
Sources¶
^[600-developer__tools__git__github-sshkey.md]