Friday, 4 July 2014

GENERATING PUBLIC & PRIVATE KEY


GENERATING KEYS


In linux we can create public and private key

STEP 1 : Checking the ssh directory. So Just open the terminal and then type the below command

$ cd ~/.ssh
If the directory is present then you will get into it , now it is easy to create apair of public and private keys with just one command
$ ssh-keygen
$ Enter passphrase (empty for no passphrase): [Type a passphrase]
# Enter same passphrase again: [Type passphrase again]

Hence your public key and private keys are generated. Just check them by typing the following commmand.

$ ls -l

Now you will find the files like  id_rsa , id_rsa.pub , known_hosts.

id_rsa       : Private key
id_rsa.pub : Public key




Hence your keys successfully generated
Share this article

0 comments:

Post a Comment

 
Copyright © 2014 krishcdbry • All Rights Reserved.
Distributed By Free Blogger Templates | Template Design by BTDesigner • Powered by Blogger
back to top