Open code-with-raiden opened 4 days ago
Delete everything created and Create a new SSH key and verify it then, Re-run the command.
bruh how to create a new ssh key can u give me a step by step guide
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.
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
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).
Go to GitHub/GitLab/Bitbucket > Settings > SSH and GPG Keys. Click New SSH Key, paste your key, and save.
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..."
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!