Are you looking for a good practice server So that you can rehearsal or do training on Linux activities ? Is your budget is tight and you are exploring all cloud services option. Then you must explore amazon AWS free tier that provides a server “micro-instance” at no cost for one year. With this you can build free server on aws that too within a minute.
Pre-requisite to build free server on AWS:
➡ AWS Account:
First of all you need to have aws account to build free server on amazon aws EC2. For signing an account ,You can sign up here. Amazon needs credit card and phone number details for initial signup. Amazon provides free tier account with which you can practice things for one year obvious keeping some limitations for use.You can check all the details here.
Step 1: Create EC2 Instance:
You might be knowing that EC2 is nothing but an Elastic compute cloud which is a virtual computing environment (similar to virtual machine in vmware )
[read more=”Read more” less=”Read less”]
In order to build free server on aws, access the AWS Management Console and click the EC2 tab. Please select following options For creating EC2 instance:
- Choose an AMI in the classic instance wizard: I chose the Red Hat Enterprise Linux 7.2 (HVM), SSD Volume Type . (Make sure you select Free Tier only check box in the left pane, just to make sure that you are using free services offered by AWS.). Click Next.
- Instance details: t2.micro,Click Next.
- Configure Instance Details: No Need to change anything,Click Next.
- Add Storage: No Need to change anything,Click Next.
- Add Tags: No Need to change anything,Click Next.
- Configure Security Group: Make sure port 22 is open from any so that you can access the server from anywhere,Click Review and launch.
- Create new key pair:Please do not forget to Create a new key pair. Give name for your key and download it on your computer with .pem extension.
- Now Launch your instance.
Step 2.Login to server:
- Go to Services drop down menu and select EC2.
- Click on “1 Running Instances“.
- You will see a server (make sure status of server is running before proceeding).
- Please select instance in management console and check and copy the public DNS value in the instance description as below:
- Now Download
puttygen.exe(a RSA and DSA key generation utility) and
putty.exe(the SSH and Telnet client ) from here.
- Now open “
- Click on Load button and select the .pem file downloaded during step 1-substep 7 above.
- Select SSH2-RSA radio button and click on Save public key button. Click yes on next pop-up.
- Now save this file with name and extension .ppk.
- Now open Putty.exe goto Connection ➡ SSH ➡ Auth and browse to select the .ppk file created in above step.
- Click on Session and paste the DNS name copied in step 2-substep 4 and click on load.
- Login as a ec2-user , system will not prompt for password.Just give command “sudo su -” and you are root of the system. Now practice everything on this server.
login as: ec2-user
Authenticating with public key "imported-openssh-key"
[ec2-user@ip-172-31-9-10 ~]$ sudo su -
[root@ip-172-31-9-10 ~]# id
uid=0(root) gid=0(root) groups=0(root) context=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023
[root@ip-172-31-9-10 ~]# date
Tue Jan 24 00:12:32 EST 2017
[root@ip-172-31-9-10 ~]# w
00:12:34 up 41 min, 1 user, load average: 0.00, 0.01, 0.05
USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT
ec2-user pts/0 188.8.131.52 00:08 2.00s 0.01s 0.09s sshd: ec2-user
Please check my post about attaching storage for extra space on server with AWS.