kryptco / kr

DEPRECATED A dev tool for SSH auth + Git commit/tag signing using a key stored in Krypton.
https://krypt.co/developers/
Other
1.59k stars 109 forks source link

My MacBook and Krypton phone app has been paired successfully, but git cli is not reaching out to my private key #328

Open hisashiyamaguchi opened 2 years ago

hisashiyamaguchi commented 2 years ago

Due to some reasons, my Krypton is not working properly even it used to work fine, and trying to re-setup it. My Mac and Krypton phone app has been paired successfully and I have put my public key on my GitHub SSH key, but my git cli is not reaching out to the private key. If I try to see my private key on Krypton phone app, I don't see anything.

Here comes what I've been trying.

$ uname -a Darwin tyo-mpy1d 21.5.0 Darwin Kernel Version 21.5.0: Tue Apr 26 21:08:22 PDT 2022; root:xnu-8020.121.3~4/RELEASE_X86_64 x86_64

$ kr pair $ ls .ssh .rwx------ 255 root 19 8 2021 config .rwx------ 731 hyamaguc 26 5 12:47 id_krypton.pub $ sudo cat .ssh/config `# Added by Krypton Host * IdentityAgent ~/.kr/krd-agent.sock ProxyCommand /usr/local/bin/krssh %h %p IdentityFile ~/.ssh/id_krypton IdentityFile ~/.ssh/id_ed25519 IdentityFile ~/.ssh/id_rsa IdentityFile ~/.ssh/id_ecdsa IdentityFile ~/.ssh/id_dsa

$ kr github $ git clone git@github.com:hisashiyamaguchi/snyk-apps-demo.git Cloning into 'snyk-apps-demo'... 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.

Imgur Imgur