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 ~/.sshIf 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 -lNow 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


0 comments:
Post a Comment