Tuesday, May 08, 2018

HOWTO connect to GIT repo setting up SSH credential, avoid typing password


git pull from bitbucket or github, requires user account credential, either password, or ssh key, if didn't use keychain or caching the password.

steps:

0) of course you need ssh

1) in folder ~/.ssh
    ssh-keygen
    # to generate a key pair - private key & public key

2) keep private key private (obviously), add to your ssh agent as identity
    ssh-add ~/.ssh/mykey

3) set up public key remotely, locate ssh credential, click "add key"
    copy and paste the text of public key file to, eg. bitbucket, add key text input field.

done

Labels: , , , , , , ,

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home