Shpota / github-activity-generator

A script that helps generate a rich GitHub Contribution Graph for your account 🤖
Apache License 2.0
2.62k stars 210 forks source link

Error :Permission denied (publickey). #60

Open code-with-raiden opened 4 days ago

code-with-raiden commented 4 days ago

1 file changed, 2 insertions(+) git@github.com: Permission denied (publickey). fatal: Could not read from remote repository.

Please make sure you have the correct access rights and the repository exists.

Repository generation completed successfully!

Sarthak-code360 commented 4 days ago

Delete everything created and Create a new SSH key and verify it then, Re-run the command.

code-with-raiden commented 3 days ago

bruh how to create a new ssh key can u give me a step by step guide

Sarthak-code360 commented 3 days ago
  1. Generate a New SSH Key Open your terminal and run:

    ssh-keygen -t ed25519 -C "your_email@example.com"

    Replace "your_email@example.com" with the email you use for Git. When prompted, press Enter to save the key in the default location. You can also set a passphrase (optional) for extra security.

  2. Add the SSH Key to Your SSH Agent

Start the SSH agent:

eval "$(ssh-agent -s)"

Add your new SSH key:

ssh-add ~/.ssh/id_ed25519
  1. Copy Your SSH Key

Copy the SSH key to your clipboard:

cat ~/.ssh/id_ed25519.pub

Then copy the key manually or use a clipboard tool (like pbcopy on macOS).

  1. Add the SSH Key to Your Git Account

Go to GitHub/GitLab/Bitbucket > Settings > SSH and GPG Keys. Click New SSH Key, paste your key, and save.

  1. Test Your SSH Connection

Run this command to verify:

ssh -T git@github.com

Replace github.com with your Git provider if using GitLab or Bitbucket. If successful, you’ll see a message like: "Hi username! You've successfully authenticated..."