this guide walks you through the process of generate SSH key.
Generate SSH Key
Run the following command,the system will ask for the file name and password of the key.You can press Enter to generate two files: id_rsa
and id_rsa.pub
.
Using the RSA algorithm by default,you can also use the following parameters:
-b
: set the key length.-t
: Set the key type.Default isrsa
and can be omitted.-C
: Set remarks,such as email.-f
: Location of the key directory.By default,it is the.ssh
hidden directory in the current user directory.
Use -m PEM
with ssh-keygen to generate private kyes in PEM format:
For more details, please visit:IT-eyes