How To Generate SSH And GPG Keys
Posted By : Mohit Shakya | 31-Dec-2017
Hi,
In this
Following are steps:
-> At your console type command
$ ssh-keygen
( you may also customize the parameters some of them are specified at the end of this blog )
-> there will be a prompt to enter
$ <enter_path_of_file>
(you may also skip this blank, but in that
-> there will be a prompt for
$ <enter_passphrase>
(you may also skip this blank, skipping this blank avoid the passphrase entry at key loading time)
-> Now Your final key files pair will be available in either your specified directory or in [ ~/.ssh/id_rsa ]
There will be two files:
1. public key file: '<file_name>.pub' ( this is your public key file )
2. private key file: '<file_name>' (this is your private key file, will be great to store it with some
$ ssh-keygen -t <crypto_altorithm> -b <bits_length>
crypto_algorithm: supported algorithms are [
bits_length: it is key bits length, it may be 1024/2048/4096
i.e.:
$ ssh-keygen -t rsa -b 2048
I hope this will be helpful
Thanks.
Cookies are important to the proper functioning of a site. To improve your experience, we use cookies to remember log-in details and provide secure log-in, collect statistics to optimize site functionality, and deliver content tailored to your interests. Click Agree and Proceed to accept cookies and go directly to the site or click on View Cookie Settings to see detailed descriptions of the types of cookies and choose whether to accept certain cookies while on the site.
About Author
Mohit Shakya
Mohit has worked in groovy and grails, filesystems, ffmpeg. Mohit likes to be adventurous, likes music, solving puzzles, playing chess, and basketball.