Why, under Settings => SSH keys, on my GitHub account does it say;
Added on Oct 24, 2014 by GitHub for Mac — Never used
Never used? I've used it! I've got plenty of contributions showing up on my profile. From that machine!
I have another key that says, quite rightly;
Last used within the last day.
...That one is from a different machine.
In terminal enter this command with your ssh file name pbcopy < ~/. ssh/id_rsa. pub This will copy the file to your clipboard Now open you github account Go to Settings > SSH and GPG keys > New SSH key Enter title and paste the key from clipboard and save it. Voila you're done.
Make sure the authorized_keys file and the private key itself have the correct permissions and ownership. Check that key-based authentication is allowed by the server. Make sure the private key is readable by the SSH client. If you're using PuTTY, make sure your SSH keys are properly configured for the session.
Always use the "git" user $ ssh -T [email protected] > Permission denied (publickey). If your connection failed and you're using a remote URL with your GitHub username, you can change the remote URL to use the "git" user. You should verify your connection by typing: $ ssh -T [email protected] > Hi username!
Your contributions may be from that machine, but you need to check how you have set up your remotes
try the following command:
git remote -v
That will list your remotes
If it is something like
origin https://github.com/......
You are connecting over https, and not SSH
You'll need to remove that remote -
git remote rm origin
Then, on your github repository page, see the following:
Click the SSH link, and copy that. It should start with [email protected]
Then, add that as the remote-
git remote add origin [email protected]:.... etc
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With