GIT installation on Windows and Generating SSH keys

  • Double click on the .exe
  •  Once installed, when I click the Windows button and type git (since I’m using Windows 7) I'll see 'Git Bash', 'Git Gui', 'Uninstall Git'.  Click 'Git Bash'.  Once I have the git bash open, I run 'git –version'  to make sure everything is working:


Generating the Secure Shell (aka SSH) Keys
  • If you have an existing keypair you wish to use, you can skip this step.
  • Now it’s time to generate a new keypair. Lets make an RSA keypair:
  • $ ssh-keygen -t rsa  -C "amal9994kumar@gmail.com"


Enter  the file name as id_rsa

 

Enter  the passphrase
Confirm your passphrase
You have generated two files id_rsa and id_rsa.pub

  • Copy these two files(id_rsa and id_rsa.pub) to the .ssh folder (found in the present working directory) 
  • Now copy the key in the id_rsa.pub file and add it to your Github account.
  • To test the working, issue the command ssh git@github.com 
Thats it your are done...!!

Comments

Post a Comment

Popular posts from this blog

How to SSH to remote server without entering password each time.

How to redirect a URL in NGINX

Ruby on Rails Installation on Windows 7