<div dir="ltr">Hi<div><br></div><div>I setup my gpg and keyed to Yubikey. My SSH works flawlessly. I have the master key and subkeys. So my authentication key, encryption key, and signing key should be totally fine.</div><div><br></div><div><div>John-Wong:tmp jwong$ gpg --list-secret-keys</div><div>/Users/jwong/.gnupg/pubring.kbx</div><div>-------------------------------</div><div>sec#  rsa4096/0xC9E7221DAFCE6539 2018-08-07 [SC]</div><div>      Key fingerprint = 463F FBF9 0399 725F 240E  7A11 C9E7 221D AFCE 6539</div><div>uid                   [ultimate] John Wong <email></div><div>ssb#  rsa4096/0xF7254D474BF6AD14 2018-08-07 [S]</div><div>ssb#  rsa4096/0xBAB7FE8D803C2351 2018-08-07 [E]</div><div>ssb>  rsa4096/0x676CA8641A239FE2 2018-08-07 [SA]</div></div><div><br></div><div>I am confused why I get this message:</div><div>    </div><div>    gpg: decryption failed: No secret key<br></div><div><br></div><div><br></div><div>I tried gpg --import but still doesn't help.</div><div><br></div><div><div>John-Wong:~ jwong$ gpg --import mastersub.key</div><div>gpg: key 0xC9E7221DAFCE6539: "John Wong <email>" not changed</div><div>gpg: To migrate 'secring.gpg', with each smartcard, run: gpg --card-status</div><div>gpg: key 0xC9E7221DAFCE6539: secret key imported</div><div>gpg: Total number processed: 1</div><div>gpg:              unchanged: 1</div><div>gpg:       secret keys read:</div></div><div><br></div><div><br></div><div>Does anyone have any ideas for why this is happening? Thank you very much. This has been bothering me for few days now.</div><div><br></div><div>John</div></div>