Saturday, 2 March 2013

git Installation

  Step 1 : sudo apt-get install git-core

  Step 2 : git config --global user.name "your user name"

  Step 3 : git config --global user.email "your email id"

  Step 4 : ssh-keygen -t rsa -C "Enter your mail id"

                  Generating public/private rsa key pair.

 Step 5 : Enter file in which to save the key (/home/gowthaman/.ssh/id_rsa): ssh-add (type this)
                        Note:It will suggest a default file name id_rsa.pub.
 Step 6 : Enter passphrase (empty for no passphrase):

 Step 7 : Enter same passphrase again:

                    Your identification has been saved in ssh-add.
                    Your public key has been saved in ssh-add.pub.
                    The key fingerprint is:80:15:61:4f:99:c9:e9:99:f4:d1:20:3e:8c:25:ad:27 your mail
                    The key's randomart image is:
                                   +--[ RSA 2048]----+
                                    |      ..+oo+o+   |
                                    |       + B*o+ .  |
                                    |      + .+=o .   |
                                    |     . .E =..    |
                                    |        So .     |
                                    |                 |
                                    |                 |
                                    +-----------------+

  Step 8 :Copy public key from ssh-add.pub. That key file contain somw key with your email.

            Key Like "ssh-rsa           AAAAB3NzaC1yc2EAAAADAQABAAABAQDLO1ARmpfDQl8CpdEPB9AVonxp9q05opFfi+Ix/Urn64Dyc2xhLyQMRVx8fd7XyA1mH4rAwVAyKhEWHJfo9QJsShDtS23q/Xq3QDQVwMrLDVMuFlTsKFdXL6zOe08W4D5kKJoj3fjKWyXdbwh9OHj1P1IdqxfwNTpnzRMCFHHLzIACIALBVyI2sdj7FPy2LktLmnXl3VXu9N6HKb3oWAXly+NDHmAaX6hYx81TjrOMNXwWqHpK5SYl5hX7k6KKbBlaJqeuPZ07tyK9/Q7FVbFiSue/3FN5LVllTST4M7f5ax+XBsKnRre+18mApB51Wy6mIzdq++/7X9LAXZZjSzl7"(Remove your email id and copy key).

Step9 : open your git account and edit profile add ssh keys.

Step 10:  Finally after add ssh key and verify   key fingerprint  in your mail.
  
                    git clone  help
            git clone  git@github.com:gowthaman14/jQuery-Validation-Engine.git

     ERROR

                Cloning into 'jQuery-Validation-Engine'...
                Permission denied (publickey).
               fatal: The remote end hung up unexpectedly

   Check that you are connecting to the correct server

    ssh -vT git@github.com

   you get
Permission denied (publickey).

   ssh -T gowthaman14@github.com(your git account name@github.com)

     you get
Permission denied (publickey).

Make sure you have a key and SSH is using it


To verify that you have a key generated and loaded into SSH, run ssh-add -l:

 ssh-add -l

print--like this  2048 a0:dd:42:3c:5a:9d:e4:2a:21:52:4e:78:07:6e:c8:4d /Users/you/.ssh/id_rsa (RSA)

If it does not print out anything, you need to add your key to SSH by running

-->ssh-add path/to/key.(ssh-add  ......setpath ssh-add.pub)




  

No comments:

Post a Comment