Error getting right account with gsn deploy

I am trying to use gsn deploy --from "0x12345....67890" -m "path/to/mnemonic.txt"

I am getting this error: Error: Unknown address - unable to sign transaction for this address: "0x12345....67890"

Others have said that this error occurs because truffle-hdwallet-provider only pulls the first account from that mnemonic. My account is not the first generated with that mnemonic.

How can I specify the right account?

it works with any of the first 10 accounts of the mnemonic.

I just checked and it’s Account 11.

Ok, I started with a fresh Metamask generated mnemonic, and I am specifying the first account on the --from flag but I am still getting this error: Error: Unknown address - unable to sign transaction for this address: “0x123…4567”

If I don’t specify a --from flag it says “Found funded account 0x123…4567” but I can’t find that account on metamask even though I added 10 accounts

Any ideas @drortirosh?

Solved. Just use the private key instead of mnemonic