- copy your private key file to ~/.ssh
- create (if it doesn't exist) the file ~/.ssh/config and add the following content:
Host my_githost.com
HostName my_githost.com
User my_username
IdentityFile ~/.ssh/my_private_key_file
- change the permissions to the private key file:
chmod 400 ~/.ssh/my_private_key_file
Now you can clone your repository.
No comments:
Post a Comment