Skip to content

Error : Permission denied #59

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
crxmo opened this issue Nov 17, 2024 · 5 comments
Open

Error : Permission denied #59

crxmo opened this issue Nov 17, 2024 · 5 comments

Comments

@crxmo
Copy link

crxmo commented Nov 17, 2024

Error :
[email protected]: Permission denied (publickey).
fatal: Could not read from remote repository.

@Zkh-dot
Copy link

Zkh-dot commented Dec 26, 2024

Error : [email protected]: Permission denied (publickey). fatal: Could not read from remote repository.

you have no access to your keys under user, running script

if you want an step by step guide how to fix it, please specify your os

if it is linux or mac, please provide results of following commands:

whoami

ls -la ~/.ssh

@raj-neelam
Copy link

its windows

@olusegunajibola
Copy link

For Windows, follow these steps:

1. Check or Generate SSH Keys
Open Command Prompt or PowerShell.
Check if you already have an SSH key:

dir ~/.ssh

If id_rsa and id_rsa.pub are not listed, generate a new SSH key:

ssh-keygen -t rsa -b 4096 -C "[email protected]"

When prompted, save the key in the default location (C:\Users<YourUsername>.ssh\id_rsa) and set a passphrase if desired.
2. Add SSH Key to the SSH Agent
Start the SSH agent:

eval "$(ssh-agent -s)"

Add your SSH private key to the agent:

ssh-add C:\Users\<YourUsername>\.ssh\id_rsa

3. Add the SSH Key to GitHub
Copy your public key:

type C:\Users\<YourUsername>\.ssh\id_rsa.pub

Log in to GitHub and go to Settings > SSH and GPG keys > New SSH key.
Paste the key into the field and give it a recognizable title.
4. Test SSH Connection
Verify the connection to GitHub:

If successful, you'll see a message like:

Hi username! You've successfully authenticated, but GitHub does not provide shell access.

Troubleshooting

Permission Denied After These Steps:
Ensure Git is configured correctly:

git config --global user.name "Your Name"
git config --global user.email "[email protected]"

@olusegunajibola
Copy link

its windows

#59 (comment)

@lireboy
Copy link

lireboy commented Feb 24, 2025

I solved it by creating a token (classic) that has permissions for everything
https://github.com/settings/tokens

then u can run the py with:

python contribute.py --repository=https://USERNAME:[email protected]/user/repo.git

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants