Creating a .ssh key in window and Mac machines

How to generate ssh key in winows -

  1. open a git bash any where and give the command ssh-keygen -t rsa -C "your_email@example.com"
  2. It will ask you the location where to store the key, just press enter(By default it will take the location C:computerName/users/.ssh/id_rsa)
  3. It will ask you for passphrase(If you wanna give passphrase you can give else simply press enter)
  4. It will ask you to confirm the passphrase, if you have given any passphrase then enter the same here else go ahead with pressing enter
  5. Finally both the public and private keys were generated and saved in the location C:computerName/users/.ssh/
  6. Share your public key to the Git team to give you the access and make sure your private key should be secure(If someone stole your private key there will be major chances to steel the source code).

How to generate ssh key in Mac Machine - 

Below are the steps to create the ssh keys n Mac machine
  1. Paste the text below, substituting in your GitHub email address.
    1. ssh-keygen -t rsa -b 4096 -C "your_email@example.com"
  2. When you're prompted to "Enter a file in which to save the key," press Enter. This accepts the default file location.
    1. Enter a file in which to save the key (/Users/you/.ssh/id_rsa): [Press enter]
  3. At the prompt, type a secure passphrase
    1. Enter passphrase (empty for no passphrase): [Type a passphrase]
      Enter same passphrase again: [Type passphrase again]
  4. For more information please go through with the following URL https://help.github.com/articles/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent/#generating-a-new-ssh-key

Comments

Popular posts from this blog

Apigility Project Setup

Git Solutions