Create an SSH key
How to generate an SSH key
To create a new SSH key, you can do so through the command line tool on a Linux machine (or using the Windows Subsystem for Linux)
Enter the following command to create a key:
ssh-keygen -t ed25519 -C "[email protected]"
In this example, the
ssh-keygen
command creates a new SSH key using the RSA algorithm with a 4096-bit key length.The
-C
option adds a comment to the key, which is your email address in this case. The command will prompt you for a file in which to save the key, or accept the default location.Last modified 7mo ago