if you derived your address via a different derivation path from ledger live, but are now using a ledger to sign use:
replace hashData in the command below with your hash, replace n with your index #, and replace the derivation path, below is based on BIP44
cast wallet sign --ledger --mnemonic-derivation-path "m/44'/60'/0'/0/n" hashData