{"id":1606,"date":"2022-06-21T03:58:15","date_gmt":"2022-06-21T03:58:15","guid":{"rendered":"https:\/\/www.checkmateq.com\/blog\/?p=1606"},"modified":"2023-08-06T15:46:18","modified_gmt":"2023-08-06T15:46:18","slug":"how-to-launch-ec2-instance-in-aws","status":"publish","type":"post","link":"https:\/\/www.checkmateq.com\/blog\/how-to-launch-ec2-instance-in-aws","title":{"rendered":"How to Launch EC2 instance in AWS"},"content":{"rendered":"<p>An Amazon Elastic Compute <a href=\"https:\/\/www.checkmateq.com\/cloud\">Cloud<\/a> (EC2) instance is a virtual server that a AWS subscriber can provision on Amazon cloud infrastructure using compute service. These are charged on an hourly basis based on the configuration selected, like instance type (including processing memory and storage), region where the instance is deployed, and AMI. In this blog we will learn how to launch an instance and connect to it.<\/p>\n<h3><strong>Launching an EC2 instance in AWS Cloud<\/strong><\/h3>\n<p>Login to your<a href=\"https:\/\/www.checkmateq.com\/aws-cloud\"> AWS\u00a0<\/a> cloud console\u00a0 search for EC2 and click on it.<\/p>\n<p><img loading=\"lazy\" class=\" wp-image-1609 aligncenter\" src=\"https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/aws-300x160.jpeg\" alt=\"\" width=\"679\" height=\"362\" srcset=\"https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/aws-300x160.jpeg 300w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/aws-1024x548.jpeg 1024w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/aws-768x411.jpeg 768w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/aws-1536x822.jpeg 1536w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/aws-1200x642.jpeg 1200w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/aws.jpeg 1920w\" sizes=\"(max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 984px) 61vw, (max-width: 1362px) 45vw, 600px\" \/><\/p>\n<p>click on <strong>instances\u00a0<\/strong>under <strong>Resources<\/strong><\/p>\n<p><img loading=\"lazy\" class=\" wp-image-1610 aligncenter\" src=\"https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/aws-1-300x152.jpeg\" alt=\"\" width=\"681\" height=\"345\" srcset=\"https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/aws-1-300x152.jpeg 300w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/aws-1-1024x520.jpeg 1024w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/aws-1-768x390.jpeg 768w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/aws-1-1536x780.jpeg 1536w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/aws-1-1200x609.jpeg 1200w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/aws-1.jpeg 1920w\" sizes=\"(max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 984px) 61vw, (max-width: 1362px) 45vw, 600px\" \/><\/p>\n<p>Now click on <strong>Launch instances<\/strong> and follow below given steps to launch a ec2 instance.<\/p>\n<p><img loading=\"lazy\" class=\" wp-image-1611 aligncenter\" src=\"https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/aws-2-300x152.jpeg\" alt=\"\" width=\"693\" height=\"351\" srcset=\"https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/aws-2-300x152.jpeg 300w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/aws-2-1024x519.jpeg 1024w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/aws-2-768x389.jpeg 768w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/aws-2-1536x778.jpeg 1536w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/aws-2-1200x608.jpeg 1200w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/aws-2.jpeg 1920w\" sizes=\"(max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 984px) 61vw, (max-width: 1362px) 45vw, 600px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p><strong>Step-1:<\/strong><\/p>\n<p>A<strong> tag <\/strong>is a label that you can give to every AWS resource. Tags are key-value pairs, which means each tag will have a key and a value. In the below snapshot <strong>Name<\/strong> is a key and<strong> terraform<\/strong> is a value. This will help you while finding the resources and performing actions on them. Click on <strong>ADD tag\u00a0<\/strong>to add more tags. You can give any type of key value pair.<\/p>\n<p><img loading=\"lazy\" class=\" wp-image-1613 aligncenter\" src=\"https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/aws-4-300x152.jpeg\" alt=\"\" width=\"694\" height=\"351\" srcset=\"https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/aws-4-300x152.jpeg 300w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/aws-4-1024x519.jpeg 1024w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/aws-4-768x389.jpeg 768w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/aws-4-1536x778.jpeg 1536w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/aws-4-1200x608.jpeg 1200w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/aws-4.jpeg 1920w\" sizes=\"(max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 984px) 61vw, (max-width: 1362px) 45vw, 600px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p><strong>Step-2: <\/strong><strong>Select Amazon Machine Image\u00a0 according to your requirements<\/strong><\/p>\n<p>An <strong>Amazon Machine<\/strong> Image is a template configured with an operating system and other pre-installed software packages required to launch an EC2 instance according to your requirements, although you can create your own AMI. You can use any of the preconfigured AMI&#8217;s from <strong>Community AMI&#8217;s<\/strong> or <strong>Market Place AMI&#8217;s.<\/strong> Community AMI&#8217;s are published by users like you and me. Marketplace AMI&#8217;s are charged on an hourly usage basis. Below is a snapshot of an AMI description from Market Place AMI&#8217;s which has a pre-installed Microsoft SQL Server on Windows. Launching an instance from this AMI allows you to run the instance as a database server and saves your time and effort for installing SQL Server software.<\/p>\n<p><img loading=\"lazy\" class=\" wp-image-1720 aligncenter\" src=\"https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/aws-30-300x153.jpeg\" alt=\"\" width=\"627\" height=\"320\" srcset=\"https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/aws-30-300x153.jpeg 300w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/aws-30-1024x523.jpeg 1024w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/aws-30-768x393.jpeg 768w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/aws-30-1200x613.jpeg 1200w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/aws-30.jpeg 1536w\" sizes=\"(max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 984px) 61vw, (max-width: 1362px) 45vw, 600px\" \/><\/p>\n<p>To check all the available AMI&#8217;s, click on &#8220;Browse more AMIs&#8221; under &#8220;Application and OS Images.&#8221;<\/p>\n<p><img loading=\"lazy\" class=\" wp-image-1721 aligncenter\" src=\"https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/aws-31-300x152.jpeg\" alt=\"\" width=\"686\" height=\"347\" srcset=\"https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/aws-31-300x152.jpeg 300w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/aws-31-1024x518.jpeg 1024w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/aws-31-768x388.jpeg 768w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/aws-31-1536x777.jpeg 1536w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/aws-31-1200x607.jpeg 1200w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/aws-31.jpeg 1920w\" sizes=\"(max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 984px) 61vw, (max-width: 1362px) 45vw, 600px\" \/><\/p>\n<p>In the below snapshot (from the AWS web console) as shown, we have options to select between market place AMI&#8217;s, custom AMI&#8217;s, and community AMI&#8217;s, and on the left pane on Refine results, you can apply filters to search for the required type of AMI.<\/p>\n<p><img loading=\"lazy\" class=\" wp-image-1722 aligncenter\" src=\"https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/aws-32-300x152.jpeg\" alt=\"\" width=\"711\" height=\"360\" srcset=\"https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/aws-32-300x152.jpeg 300w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/aws-32-1024x520.jpeg 1024w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/aws-32-768x390.jpeg 768w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/aws-32-1536x780.jpeg 1536w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/aws-32-1200x609.jpeg 1200w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/aws-32.jpeg 1920w\" sizes=\"(max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 984px) 61vw, (max-width: 1362px) 45vw, 600px\" \/><\/p>\n<p>for this blog I am selecting a free tier eligible (free of cost) &#8220;Red Hat Enterprise Linux 8 AMI&#8221; to launch the ec2 instance.<\/p>\n<p><img loading=\"lazy\" class=\" wp-image-1723 aligncenter\" src=\"https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/aws-33-300x153.jpeg\" alt=\"\" width=\"705\" height=\"359\" srcset=\"https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/aws-33-300x153.jpeg 300w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/aws-33-1024x523.jpeg 1024w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/aws-33-768x392.jpeg 768w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/aws-33-1536x784.jpeg 1536w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/aws-33-1200x613.jpeg 1200w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/aws-33.jpeg 1920w\" sizes=\"(max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 984px) 61vw, (max-width: 1362px) 45vw, 600px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p><strong>Step-3: Select Instance Type<\/strong><\/p>\n<p class=\"root-block-node\" data-changed=\"false\" data-paragraphid=\"9\">The instance type you select determines the hardware of the computer used to launch your instance based on the CPU, memory, storage and networking capacities. Instance types are grouped into<\/p>\n<p class=\"root-block-node\" data-changed=\"false\" data-paragraphid=\"10\"><strong>General purpose\u00a0<\/strong>instances have balanced resources of compute, networking, and memory and can be used for workloads like web servers and code repositories.<\/p>\n<p><strong>Compute optimized<\/strong>\u00a0instance types have high performance processors powered by AWS Graviton3 processors. These instances are used for batch processing workloads, dedicated gaming servers, media transcoding, and other compute-intensive applications.<\/p>\n<p><strong>Memory optimized\u00a0<\/strong> are used for High performance and databases , and processing large data sets in memory.<\/p>\n<p><strong>Storage optimized<\/strong> instances designed for workloads which makes high sequential read and write operations to extremely huge data sets residing on local storage, these instance types are optimized to deliver tens of thousands of low latency Input and Output operations per second for applications.<\/p>\n<p>As shown in below image I am using\u00a0 instance type <strong>t2.micro\u00a0<\/strong>(1vCPU and 1GiB Memory),click on compare instance types to see all the available instance types.<\/p>\n<p><img loading=\"lazy\" class=\" wp-image-1704 aligncenter\" src=\"https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/aws-18-300x153.jpeg\" alt=\"\" width=\"680\" height=\"347\" srcset=\"https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/aws-18-300x153.jpeg 300w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/aws-18-1024x524.jpeg 1024w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/aws-18-768x393.jpeg 768w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/aws-18-1536x786.jpeg 1536w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/aws-18-1200x614.jpeg 1200w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/aws-18.jpeg 1920w\" sizes=\"(max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 984px) 61vw, (max-width: 1362px) 45vw, 600px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p><strong>Step-4: Creating a key pair.<\/strong><\/p>\n<p>To securely connect to your instance create a new key pair or use the existing\u00a0 one. A key pair consists of a public key and private key , ec2 will store the public key on the instance and you will have the private key. Please download the key pair and when you are creating a new one and store it securely , if you are selecting a existing key pair, please check if you have access to that key pair before creating the instance.<\/p>\n<p>Click on &#8220;Create new key pair&#8221; to create a new key pair.<\/p>\n<p><img loading=\"lazy\" class=\"wp-image-1707 aligncenter\" src=\"https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/aws-20-1-300x151.jpeg\" alt=\"\" width=\"725\" height=\"365\" srcset=\"https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/aws-20-1-300x151.jpeg 300w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/aws-20-1-1024x517.jpeg 1024w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/aws-20-1-768x388.jpeg 768w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/aws-20-1-1536x775.jpeg 1536w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/aws-20-1-1200x606.jpeg 1200w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/aws-20-1.jpeg 1920w\" sizes=\"(max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 984px) 61vw, (max-width: 1362px) 45vw, 600px\" \/><\/p>\n<p>Give a name to your key pair ,As shown in the screenshot below, RSA is selected as the encryption type, and under Private key file format, select .pem if you want to connect via SSH, and select .ppk if you want to connect via putty (a terminal emulator). In this blog, you will also learn how to connect to an EC2 instance via open SSH, so select &#8220;.pem&#8221; for the file format, then click on &#8220;create key pair&#8221;. A file will be automatically downloaded; store it safely.<\/p>\n<p><img loading=\"lazy\" class=\" wp-image-1713 aligncenter\" src=\"https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/aws-21-1-300x153.jpeg\" alt=\"\" width=\"733\" height=\"374\" srcset=\"https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/aws-21-1-300x153.jpeg 300w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/aws-21-1-1024x522.jpeg 1024w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/aws-21-1-768x391.jpeg 768w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/aws-21-1-1536x783.jpeg 1536w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/aws-21-1-1200x612.jpeg 1200w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/aws-21-1.jpeg 1905w\" sizes=\"(max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 984px) 61vw, (max-width: 1362px) 45vw, 600px\" \/><\/p>\n<p><strong>Step-5: Creating a security group<\/strong><\/p>\n<p>The security group acts as a virtual firewall which controls the inbound and outgoing traffic of the resource that it is attached to. It&#8217;s a set of rules that you define which network can access which port. Both inbound and outbound rules can be configured separately. In the below snapshot, I am allowing traffic on ports 22 (ssh) and selecting the source type as Anywhere. This means I am allowing traffic on port 22 from any network. You can also create outbound (outgoing traffic) rules for your resources. By default, outbound traffic is allowed from all the ports.<\/p>\n<p><img loading=\"lazy\" class=\" wp-image-1714 aligncenter\" src=\"https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/aws-26-300x119.jpeg\" alt=\"\" width=\"620\" height=\"246\" srcset=\"https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/aws-26-300x119.jpeg 300w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/aws-26-1024x407.jpeg 1024w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/aws-26-768x305.jpeg 768w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/aws-26.jpeg 1075w\" sizes=\"(max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 984px) 61vw, (max-width: 1362px) 45vw, 600px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>Click on <strong>edit<\/strong> for &#8220;Network Settings&#8221;<\/p>\n<p><img loading=\"lazy\" class=\" wp-image-1715 aligncenter\" src=\"https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/aws-27-300x153.jpeg\" alt=\"\" width=\"767\" height=\"391\" srcset=\"https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/aws-27-300x153.jpeg 300w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/aws-27-1024x521.jpeg 1024w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/aws-27-768x391.jpeg 768w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/aws-27-1536x782.jpeg 1536w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/aws-27-1200x611.jpeg 1200w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/aws-27.jpeg 1920w\" sizes=\"(max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 984px) 61vw, (max-width: 1362px) 45vw, 600px\" \/><\/p>\n<p>Select <strong>Create security group\u00a0<\/strong>for Firewall, give a name for your security group and allow traffic on port 22 as we will use SSH to login to the instance. For source type, select Custom and give the network details that you want to give access to (keep it as anywhere if you want to access your instance from any network or your IP address if you will only access it from that machine). Click on &#8220;Add security group rule&#8221; if you want to allow traffic on any other ports.<\/p>\n<p><img loading=\"lazy\" class=\" wp-image-1716 aligncenter\" src=\"https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/aws-28-300x152.jpeg\" alt=\"\" width=\"697\" height=\"353\" srcset=\"https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/aws-28-300x152.jpeg 300w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/aws-28-1024x519.jpeg 1024w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/aws-28-768x389.jpeg 768w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/aws-28-1536x778.jpeg 1536w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/aws-28-1200x608.jpeg 1200w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/aws-28.jpeg 1920w\" sizes=\"(max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 984px) 61vw, (max-width: 1362px) 45vw, 600px\" \/><\/p>\n<p>after creating\u00a0 security group scroll down to <strong>Summary<\/strong> check the configuration you have selected and click on <strong>Launch Instance<\/strong><\/p>\n<p><img loading=\"lazy\" class=\" wp-image-1717 aligncenter\" src=\"https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/aws-29-300x152.jpeg\" alt=\"\" width=\"670\" height=\"339\" srcset=\"https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/aws-29-300x152.jpeg 300w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/aws-29-1024x519.jpeg 1024w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/aws-29-768x389.jpeg 768w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/aws-29-1536x778.jpeg 1536w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/aws-29-1200x608.jpeg 1200w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/aws-29.jpeg 1920w\" sizes=\"(max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 984px) 61vw, (max-width: 1362px) 45vw, 600px\" \/><\/p>\n<p>&nbsp;<\/p>\n<h3><strong>Connecting to Instance using SSH client\u00a0<\/strong><\/h3>\n<p>Click on the view all instances<\/p>\n<p><img loading=\"lazy\" class=\" wp-image-1725 aligncenter\" src=\"https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/aws-34-300x152.jpeg\" alt=\"\" width=\"694\" height=\"352\" srcset=\"https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/aws-34-300x152.jpeg 300w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/aws-34-1024x518.jpeg 1024w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/aws-34-768x388.jpeg 768w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/aws-34-1536x777.jpeg 1536w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/aws-34-1200x607.jpeg 1200w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/aws-34.jpeg 1920w\" sizes=\"(max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 984px) 61vw, (max-width: 1362px) 45vw, 600px\" \/><\/p>\n<p>Now wait till the instance state changes to Running and click on the instance ID that you have created.<\/p>\n<p><img loading=\"lazy\" class=\" wp-image-1728 aligncenter\" src=\"https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/aws-35-300x153.jpeg\" alt=\"\" width=\"712\" height=\"363\" srcset=\"https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/aws-35-300x153.jpeg 300w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/aws-35-1024x522.jpeg 1024w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/aws-35-768x391.jpeg 768w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/aws-35-1536x782.jpeg 1536w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/aws-35-1200x611.jpeg 1200w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/aws-35.jpeg 1920w\" sizes=\"(max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 984px) 61vw, (max-width: 1362px) 45vw, 600px\" \/><\/p>\n<p>Copy your Public IPv4 address<\/p>\n<p><img loading=\"lazy\" class=\" wp-image-1729 aligncenter\" src=\"https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/aws-36-300x152.jpeg\" alt=\"\" width=\"712\" height=\"361\" srcset=\"https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/aws-36-300x152.jpeg 300w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/aws-36-1024x520.jpeg 1024w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/aws-36-768x390.jpeg 768w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/aws-36-1536x780.jpeg 1536w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/aws-36-1200x609.jpeg 1200w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/aws-36.jpeg 1920w\" sizes=\"(max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 984px) 61vw, (max-width: 1362px) 45vw, 600px\" \/><\/p>\n<p>open the terminal from the file location where you stored your key pair (from step-4) and use below command to connect to your instance.<\/p>\n<pre>ssh -i \"key2.pem\" ec2-user@3.109.108.210<\/pre>\n<p><strong>secure shell(ssh)<\/strong> is a network communication protocol it allows computers to communicate and share data ,instead of <strong>key2.pem<\/strong> give your\u00a0 pem file name (created in step 4),<strong>3.109.108.210<\/strong> is my instance Public IPv4 address give your IP here.<\/p>\n<p>enter &#8221;yes&#8221; when it prompts for confirmation, done ,now you are on remote instance.<\/p>\n<p><img loading=\"lazy\" class=\" wp-image-1730 aligncenter\" src=\"https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/Screenshot-243-300x169.png\" alt=\"\" width=\"668\" height=\"376\" srcset=\"https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/Screenshot-243-300x169.png 300w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/Screenshot-243-1024x576.png 1024w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/Screenshot-243-768x432.png 768w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/Screenshot-243-1536x864.png 1536w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/Screenshot-243-1200x675.png 1200w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/Screenshot-243.png 1920w\" sizes=\"(max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 984px) 61vw, (max-width: 1362px) 45vw, 600px\" \/><\/p>\n<p>Feel free to <a href=\"https:\/\/www.checkmateq.com\/contact-us\">contact<\/a> our technical team for more technical information. <a href=\"https:\/\/www.checkmateq.com\/google-cloud\">Hire Google cloud engineer<\/a> to manage daily GCP cloud devops operations.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>An Amazon Elastic Compute Cloud (EC2) instance is a virtual server that a AWS subscriber can provision on Amazon cloud infrastructure using compute service. These are charged on an hourly basis based on the configuration selected, like instance type (including processing memory and storage), region where the instance is deployed, and AMI. In this blog &hellip; <a href=\"https:\/\/www.checkmateq.com\/blog\/how-to-launch-ec2-instance-in-aws\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;How to Launch EC2 instance in AWS&#8221;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[62,60,61,2,7,22,11,23,16],"_links":{"self":[{"href":"https:\/\/www.checkmateq.com\/blog\/wp-json\/wp\/v2\/posts\/1606"}],"collection":[{"href":"https:\/\/www.checkmateq.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.checkmateq.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.checkmateq.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.checkmateq.com\/blog\/wp-json\/wp\/v2\/comments?post=1606"}],"version-history":[{"count":25,"href":"https:\/\/www.checkmateq.com\/blog\/wp-json\/wp\/v2\/posts\/1606\/revisions"}],"predecessor-version":[{"id":4301,"href":"https:\/\/www.checkmateq.com\/blog\/wp-json\/wp\/v2\/posts\/1606\/revisions\/4301"}],"wp:attachment":[{"href":"https:\/\/www.checkmateq.com\/blog\/wp-json\/wp\/v2\/media?parent=1606"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.checkmateq.com\/blog\/wp-json\/wp\/v2\/categories?post=1606"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.checkmateq.com\/blog\/wp-json\/wp\/v2\/tags?post=1606"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}