On 1/14/24 21:50, bruce wrote:

[snip lots of stuff]
You're doing way too many unnecessary things.
I noticed that I was using an rsa key, so I decided to follow the steps to add a new ed25519 key.

login as user foo
setup the sshkey

ssh-keygen -t ed25519 -C 'y...@email.com' -f ~/.ssh/id_ed25519 -q -N ''

You might not want to use "-q" as it might be hiding something you need to know. I create a specific key for github instead of using the default file. That also makes it easier to copy around to other systems.

What I used and hit enter for the password:
ssh-keygen -t ed25519 -f ~/.ssh/id_ed25519.git

-- add the key to the github/ssh new key page

using the pub key, add it to the "github" webpage in the new sshkey dialog

Did this.

before cloning a repos, test to make sure things work...

ssh -vT g...@github.com
this should return success if everything works correctly

I was not aware of this handy test before.

which seems to ask for a passphrase!!
and then it dies..

I've tried to run the basic process....

setup the /.ssh/config
Host github.com
   HostName github.com
   ## 67.205.151.11
   User git
   AddKeysToAgent yes
   /home/crawl_user/.ssh/id_ed25519_g

Where did that "_g" on the end come from? It doesn't match any of your commands.

ssh-keygen -t ed25519 -C 'y...@email.com' -f ~/.ssh/github/id_ed25519 -q -N ''

creates the new key pub/priv
cat ~/.ssh/github/id_ed25519.pub
cat ~/.ssh/github/id_ed25519
  -- add the key to the github/ssh new key page

.
.
.
debug1: Authentications that can continue: publickey
debug1: Next authentication method: publickey
debug1: Trying private key: /home/crawl_user/.ssh/id_ed25519_g
debug1: PEM_read_PrivateKey failed
debug1: read PEM private key done: type <unknown>
Enter passphrase for key '/home/crawl_user/.ssh/id_ed25519_g':
debug1: No more authentication methods to try.
Permission denied (publickey).

which seems to ask for a passphrase!!
and then it dies..

Compare the key you generated with the key it's trying. Apparently you either created another key with a password or it just doesn't exist and thinks it needs a password. Fix your config file.
--
_______________________________________________
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org
Do not reply to spam, report it: 
https://pagure.io/fedora-infrastructure/new_issue

Reply via email to