Hi all, I have ssh key written in tpm2, everything was working, today I tried to download repository from gitlab and got this error:
WARNING:esys:src/tss2-esys/api/Esys_StartAuthSession.c:390:Esys_StartAuthSession_Finish() Received TPM Error
ERROR:esys:src/tss2-esys/api/Esys_StartAuthSession.c:136:Esys_StartAuthSession() Esys Finish ErrorCode (0x0000018b)
ERROR: Esys_StartAuthSession: tpm:handle(1):the handle is not correct for the use
ERROR: Could not start Auth Session with the TPM.
ERROR: Error unsealing wrapping key
C_SignInit failed: 5
pkcs11_get_key failed
sign_and_send_pubkey: signing failed for ECDSA "": error in libcrypto
git@gitlab.com: Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists
Hi all, I have ssh key written in tpm2, everything was working, today I tried to download repository from gitlab and got this error:
ssh-keygen -D /usr/lib/x86_64-linux-gnu/libtpm2_pkcs11.so.1
outputs my key.