This is our recommendation for how to best set up and launch an STX Miner on a cloud-based server. It is based on our experience and it is only one option.
Recommended Server Configuration
Cloud Server:
In this section, we use the official Stacks tutorial , which uses npx to generate both Stacks and Bitcoin key pairs. These key pairs are generated in localhost. You must record the mnemonic and key info carefully and securely before closing the terminal.
Refer to official tutorial : Running a miner
First, a keychain needs to be generated. With this keychain, we'll purchase some BTC from a crytpocurrency exchange, and then use that BTC to start mining.To get a keychain, the simplest way is to use the stacks-cli. We'll use the make_keychain command.
After this runs, you should see some JSON in the new keychain.txt file that looks like this: