Thursday, 12 January 2012

Git Host Key Verification Failed Error

if you re-formatted your computer like me and faced errors with GIT, you might need the following steps to setup the ssh key again.

1. Set your global settings first:
git config—global user.name “Your Name”
git config—global user.email “email@email.com
Your email address must be same as in Assembla

2. Generating a new key:
ssh-keygen -t rsa -C “name@email.com
Do not give it a filename. Just hit enter.
Creates a public and private key. Will ask for passphrase but you don’t need one. Just hit enter.

3. In Windows, the key will appear at C:\Users\name\.ssh on default
Copy public key (rsa_id.pub) into your Profile on Assembla
Best way to do this is to open it in Notepad and save it as rsa_id.txt without making any changes. Then upload it to your profile.

No comments:

Post a Comment