Canonical question on cloud mining: Is there any way by which I can mine Monero on Azure Cloud Services, or Amazon Web Services, or Digital Ocean? How? Does it pay off?
Though there are no instructions on Monero mining on AWS or similar services yet, this might give you a start, back in 2013 Litecoin mining on AWS et al. came into vogue, and there was a tutorial for getting up and going on AWS. All you'd probably have to do is substitute the litecoin mining install for a Monero equivalent, then see how many hashes it spits out, and see whether the price of using the service each day is offset by the amount of monero mined per day, which could be easily calculated on most public mining pools.
Hopefully that gets you started.
I have tried mining on AWS, Azure and Google Cloud so trust me when I say you might never break even. I used their 30 days trial to setup mining using minergate cli mining client, which is easy to setup. To setup, use the following command;
wget https://minergate.com/download/deb-cli mv deb-cli minergate-cli-release.deb chmod u+x minergate-cli-release.deb sudo apt install libpcre16 ./minergate-cli-release.deb && sudo apt-get install -f minergate-cli --user email@example.com --xmr 1
The last command (
minergate-cli -user firstname.lastname@example.org –xmr 1) starts mining. email@example.com is your registered email on minergate.
-xmr is the currency to mine (Monero) while 1 is the number of CPU cores to use, if ommitted it will use all available cores.
It might be better for you to use screen command to run the mining instruction so that it does not stop when your ssh session closes.
- Google frown at mining with their 30 days trial cloud server. I am not sure if it is allowed with the paid version
- None of the providers proof profitable. The average Hashpower of most of the servers is around 30-40H/s. AWS even drops to 3-5H/s at times. You might never be able to break even.
I find the MinerGate console miner pretty straightforward to use:
You can download the console miner on a linux command line using:
URL='https://minergate.com/download/deb-cli'; FILE=`mktemp`; wget "$URL" -qO $FILE && sudo dpkg -i $FILE; rm $FILE
Then start mining with:
minergate-cli -user YOUR-EMAIL -xmr 2
Where YOUR-EMAIL is your login on MinerGate, and 2 is the number of cores.
Note that the default option when mining with MinerGate is to use the MinerGate pool. If you want to mine on a different pool, like MoneroHash, use a different host, like
stratum+tcp://monerohash.com:3333. (I forget the command exactly, use
help to see list of available commands.)
MoneroHash also has a good reference for different mining tools you can use: https://monerohash.com/#getting_started