Firstly, you need to choose a good cloud provider. There are hundreds of cloud providers out there. AWS, Azure, Google Cloud, DigitalOcean, IBM Cloud, Rackspace, VMware are some of the cloud providers. Out of these, AWS, Azure and Google Cloud are the top three cloud providers in the industry.
Launching an instance, in AWS
Firstly, Create an account with AWS. Log in to the AWS console at https://console.aws.amazon.com
The Infrastructure as a service in AWS is called EC2.
Select the region in which you want to launch instances. The AWS infrastructure is global and it spans several countries.
Click Services > EC2 > Launch instance.
Amazon Linux 2 is the flavour of Linux created by AWS. It is based on CentOS.
Use t2.micro as it is free for 1 year for new AWS accounts.
Create a new key pair – this creates a private key and a public key. The public key is uploaded to the instance and the private key is given to you as a .pem file. You then use this .pem file to connect to your instance over SSH.
You can get instructions to connect to your instance from the AWS console.
Select the instance > Actions > Connect.