1

I generated the SSH key using the command: $ ssh-keygen, It prompted for a filename and phrase, which I provided and generated the corresponding file. Then from github.com I added the SSH key from settings>SSH and GPG keys where I pasted the key in the generated file. Then I hit the command $ ssh -T [email protected] in the terminal which gave me a :Permission denied (publickey). message. What does this message mean and why am I getting this? Previously I didn't have trouble with this.

1 Answer 1

2

where I pasted the key in the generated file.

Make sure it was:

  • the id_rsa.pub file, meaning the public key (not the private one)
  • the public key pasted as one continuous line (not multiple lines)

Check also you have added your private key to the ssh-agent. (in order to not enter the passphrase every time)

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.