{"id":2517,"date":"2023-01-11T20:01:46","date_gmt":"2023-01-11T20:01:46","guid":{"rendered":"https:\/\/devclouds.io\/blog\/?p=2517"},"modified":"2023-01-22T15:16:59","modified_gmt":"2023-01-22T15:16:59","slug":"connecting-to-ec2-virtual-machine","status":"publish","type":"post","link":"https:\/\/devclouds.io\/blog\/connecting-to-ec2-virtual-machine\/","title":{"rendered":"Connecting to EC2 Virtual Machine"},"content":{"rendered":"\n<p>In this article we&#8217;ll learn connecting to EC2 Virtual Machine in <a href=\"https:\/\/aws.amazon.com\/\" target=\"_blank\" rel=\"noreferrer noopener\">AWS<\/a> instance. if you want to see how to <a href=\"https:\/\/devclouds.io\/blog\/ec2-as-your-virtual-server\/\">create Virtual Machine in EC2<\/a> click the link.<\/p>\n\n\n\n<p>And to do that first of all let me show you the same file that I downloaded previously. if you remember the key pair we created while creating the virtual machine.<\/p>\n\n\n\n<div style=\"height:30px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large is-resized\"><img decoding=\"async\" src=\"https:\/\/devclouds.io\/blog\/wp-content\/uploads\/2023\/01\/Screenshot_1-1-1024x509.jpg\" alt=\"pem file\" class=\"wp-image-2519\" width=\"768\" height=\"382\" srcset=\"https:\/\/devclouds.io\/blog\/wp-content\/uploads\/2023\/01\/Screenshot_1-1-1024x509.jpg 1024w, https:\/\/devclouds.io\/blog\/wp-content\/uploads\/2023\/01\/Screenshot_1-1-300x149.jpg 300w, https:\/\/devclouds.io\/blog\/wp-content\/uploads\/2023\/01\/Screenshot_1-1-768x382.jpg 768w, https:\/\/devclouds.io\/blog\/wp-content\/uploads\/2023\/01\/Screenshot_1-1.jpg 1066w\" sizes=\"(max-width: 768px) 100vw, 768px\" \/><\/figure>\n<\/div>\n\n\n<div style=\"height:30px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p>Now it&#8217;s in my downloads folder and it&#8217;s called darey-ec2.pem. Now I&#8217;m we&#8217;re gonna need the terminal to do this. So if you&#8217;re on a MacOS this is how you&#8217;re gonna do it. If you&#8217;re on a Windows computer I would show you in another article how to do that.<\/p>\n\n\n\n<div style=\"height:30px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large is-resized\"><img decoding=\"async\" src=\"https:\/\/devclouds.io\/blog\/wp-content\/uploads\/2023\/01\/Screenshot_30-1024x441.jpg\" alt=\"search terminal\" class=\"wp-image-2521\" width=\"768\" height=\"331\" srcset=\"https:\/\/devclouds.io\/blog\/wp-content\/uploads\/2023\/01\/Screenshot_30-1024x441.jpg 1024w, https:\/\/devclouds.io\/blog\/wp-content\/uploads\/2023\/01\/Screenshot_30-300x129.jpg 300w, https:\/\/devclouds.io\/blog\/wp-content\/uploads\/2023\/01\/Screenshot_30-768x331.jpg 768w, https:\/\/devclouds.io\/blog\/wp-content\/uploads\/2023\/01\/Screenshot_30.jpg 1278w\" sizes=\"(max-width: 768px) 100vw, 768px\" \/><\/figure>\n<\/div>\n\n\n<div style=\"height:30px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p>First thing you want to do is on your Mac keyboard you click on the &#8220;command&#8221; and &#8220;spacebar&#8221; button. And that&#8217;s gonna bring up this search bar you see here that say spotlight search. Type &#8220;terminal&#8221; and click on terminal to open it up.<\/p>\n\n\n\n<div style=\"height:30px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img decoding=\"async\" width=\"328\" height=\"202\" src=\"https:\/\/devclouds.io\/blog\/wp-content\/uploads\/2023\/01\/Screenshot_2-1.jpg\" alt=\"Cd Command\" class=\"wp-image-2522\" srcset=\"https:\/\/devclouds.io\/blog\/wp-content\/uploads\/2023\/01\/Screenshot_2-1.jpg 328w, https:\/\/devclouds.io\/blog\/wp-content\/uploads\/2023\/01\/Screenshot_2-1-300x185.jpg 300w\" sizes=\"(max-width: 328px) 100vw, 328px\" \/><\/figure>\n<\/div>\n\n\n<div style=\"height:30px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p>Alright we need to go to the downloads folder. Use this command<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>cd Downloads\/<\/code><\/pre>\n\n\n\n<p>And to see files in there like i want to see my file &#8220;darey-ec2.pem&#8221;, use this command<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>ls<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-setup-ec2-security-group-to-access-instance-from-all-over-the-world\">Setup EC2 Security Group to access Instance from all over the world.<\/h2>\n\n\n\n<p>If you created a new instance in AWS EC2 or you launch your instance without configuring group polices.<\/p>\n\n\n\n<div style=\"height:30px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large is-resized\"><img decoding=\"async\" src=\"https:\/\/devclouds.io\/blog\/wp-content\/uploads\/2023\/01\/Screenshot_4-1-1024x501.jpg\" alt=\"Configure Group Polices\" class=\"wp-image-2530\" width=\"768\" height=\"376\" srcset=\"https:\/\/devclouds.io\/blog\/wp-content\/uploads\/2023\/01\/Screenshot_4-1-1024x501.jpg 1024w, https:\/\/devclouds.io\/blog\/wp-content\/uploads\/2023\/01\/Screenshot_4-1-300x147.jpg 300w, https:\/\/devclouds.io\/blog\/wp-content\/uploads\/2023\/01\/Screenshot_4-1-768x376.jpg 768w, https:\/\/devclouds.io\/blog\/wp-content\/uploads\/2023\/01\/Screenshot_4-1.jpg 1365w\" sizes=\"(max-width: 768px) 100vw, 768px\" \/><\/figure>\n<\/div>\n\n\n<div style=\"height:30px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p>In your instance page bring up security group section mentioned above picture with red line.<\/p>\n\n\n\n<div style=\"height:30px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large is-resized\"><img decoding=\"async\" src=\"https:\/\/devclouds.io\/blog\/wp-content\/uploads\/2023\/01\/Screenshot_5-2-1024x425.jpg\" alt=\"Security Groups\" class=\"wp-image-2545\" width=\"768\" height=\"319\" srcset=\"https:\/\/devclouds.io\/blog\/wp-content\/uploads\/2023\/01\/Screenshot_5-2-1024x425.jpg 1024w, https:\/\/devclouds.io\/blog\/wp-content\/uploads\/2023\/01\/Screenshot_5-2-300x125.jpg 300w, https:\/\/devclouds.io\/blog\/wp-content\/uploads\/2023\/01\/Screenshot_5-2-768x319.jpg 768w, https:\/\/devclouds.io\/blog\/wp-content\/uploads\/2023\/01\/Screenshot_5-2.jpg 1365w\" sizes=\"(max-width: 768px) 100vw, 768px\" \/><\/figure>\n<\/div>\n\n\n<div style=\"height:30px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p>As you can see this security group right here. Click on that &#8220;default&#8221; option.<\/p>\n\n\n\n<div style=\"height:30px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large is-resized\"><img decoding=\"async\" src=\"https:\/\/devclouds.io\/blog\/wp-content\/uploads\/2023\/01\/Screenshot_7-4-1024x317.jpg\" alt=\"Actions Edit inbound rule\" class=\"wp-image-2555\" width=\"768\" height=\"238\" srcset=\"https:\/\/devclouds.io\/blog\/wp-content\/uploads\/2023\/01\/Screenshot_7-4-1024x317.jpg 1024w, https:\/\/devclouds.io\/blog\/wp-content\/uploads\/2023\/01\/Screenshot_7-4-300x93.jpg 300w, https:\/\/devclouds.io\/blog\/wp-content\/uploads\/2023\/01\/Screenshot_7-4-768x237.jpg 768w, https:\/\/devclouds.io\/blog\/wp-content\/uploads\/2023\/01\/Screenshot_7-4.jpg 1365w\" sizes=\"(max-width: 768px) 100vw, 768px\" \/><\/figure>\n<\/div>\n\n\n<div style=\"height:30px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p>What we need to do is to go to &#8220;Actions&#8221; then &#8220;Edit inbound rule&#8221;<\/p>\n\n\n\n<div style=\"height:30px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large is-resized\"><img decoding=\"async\" src=\"https:\/\/devclouds.io\/blog\/wp-content\/uploads\/2023\/01\/Screenshot_8-3-1024x359.jpg\" alt=\"Access from Anywhere\" class=\"wp-image-2554\" width=\"768\" height=\"269\" srcset=\"https:\/\/devclouds.io\/blog\/wp-content\/uploads\/2023\/01\/Screenshot_8-3-1024x359.jpg 1024w, https:\/\/devclouds.io\/blog\/wp-content\/uploads\/2023\/01\/Screenshot_8-3-300x105.jpg 300w, https:\/\/devclouds.io\/blog\/wp-content\/uploads\/2023\/01\/Screenshot_8-3-768x269.jpg 768w, https:\/\/devclouds.io\/blog\/wp-content\/uploads\/2023\/01\/Screenshot_8-3.jpg 1365w\" sizes=\"(max-width: 768px) 100vw, 768px\" \/><\/figure>\n<\/div>\n\n\n<div style=\"height:30px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p>Normally you will put an IP address where you want to be able to connect from but in this incident we want to be able to call it from anywhere so select that. If we save this rule we&#8217;re pretty much good to go.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Connecting to EC2 Virtual Machine<\/h2>\n\n\n\n<div style=\"height:30px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large is-resized\"><img decoding=\"async\" src=\"https:\/\/devclouds.io\/blog\/wp-content\/uploads\/2023\/01\/Screenshot_25-1024x429.jpg\" alt=\"Connecting EC2\" class=\"wp-image-2556\" width=\"768\" height=\"322\" srcset=\"https:\/\/devclouds.io\/blog\/wp-content\/uploads\/2023\/01\/Screenshot_25-1024x429.jpg 1024w, https:\/\/devclouds.io\/blog\/wp-content\/uploads\/2023\/01\/Screenshot_25-300x126.jpg 300w, https:\/\/devclouds.io\/blog\/wp-content\/uploads\/2023\/01\/Screenshot_25-768x322.jpg 768w, https:\/\/devclouds.io\/blog\/wp-content\/uploads\/2023\/01\/Screenshot_25.jpg 1365w\" sizes=\"(max-width: 768px) 100vw, 768px\" \/><\/figure>\n<\/div>\n\n\n<div style=\"height:30px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p>Back to the ec2 instance again and we go to the actions and connect now.<\/p>\n\n\n\n<div style=\"height:30px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large is-resized\"><img decoding=\"async\" src=\"https:\/\/devclouds.io\/blog\/wp-content\/uploads\/2023\/01\/Screenshot_23-2-1024x455.jpg\" alt=\"chmod 400\" class=\"wp-image-2557\" width=\"768\" height=\"341\" srcset=\"https:\/\/devclouds.io\/blog\/wp-content\/uploads\/2023\/01\/Screenshot_23-2-1024x455.jpg 1024w, https:\/\/devclouds.io\/blog\/wp-content\/uploads\/2023\/01\/Screenshot_23-2-300x133.jpg 300w, https:\/\/devclouds.io\/blog\/wp-content\/uploads\/2023\/01\/Screenshot_23-2-768x341.jpg 768w, https:\/\/devclouds.io\/blog\/wp-content\/uploads\/2023\/01\/Screenshot_23-2.jpg 1365w\" sizes=\"(max-width: 768px) 100vw, 768px\" \/><\/figure>\n<\/div>\n\n\n<div style=\"height:30px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p>We need to copy and paste to get things to work. Here my key is mention above the picture &#8220;chmod 400 darey-ec2.pem&#8221;.<\/p>\n\n\n\n<div style=\"height:30px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large is-resized\"><img decoding=\"async\" src=\"https:\/\/devclouds.io\/blog\/wp-content\/uploads\/2023\/01\/Screenshot_27-1024x427.jpg\" alt=\"ssh Command to connect ec2\" class=\"wp-image-2558\" width=\"768\" height=\"320\" srcset=\"https:\/\/devclouds.io\/blog\/wp-content\/uploads\/2023\/01\/Screenshot_27-1024x427.jpg 1024w, https:\/\/devclouds.io\/blog\/wp-content\/uploads\/2023\/01\/Screenshot_27-300x125.jpg 300w, https:\/\/devclouds.io\/blog\/wp-content\/uploads\/2023\/01\/Screenshot_27-768x320.jpg 768w, https:\/\/devclouds.io\/blog\/wp-content\/uploads\/2023\/01\/Screenshot_27.jpg 1339w\" sizes=\"(max-width: 768px) 100vw, 768px\" \/><\/figure>\n<\/div>\n\n\n<div style=\"height:30px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p>After this command use second ssh command to connect to the EC2 Virtual Machine.<\/p>\n\n\n\n<div style=\"height:30px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img decoding=\"async\" width=\"703\" height=\"767\" src=\"https:\/\/devclouds.io\/blog\/wp-content\/uploads\/2023\/01\/Screenshot_24.jpg\" alt=\"Connected to ec2\" class=\"wp-image-2559\" srcset=\"https:\/\/devclouds.io\/blog\/wp-content\/uploads\/2023\/01\/Screenshot_24.jpg 703w, https:\/\/devclouds.io\/blog\/wp-content\/uploads\/2023\/01\/Screenshot_24-275x300.jpg 275w\" sizes=\"(max-width: 703px) 100vw, 703px\" \/><\/figure>\n<\/div>\n\n\n<div style=\"height:30px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p>Whoa did you see that? so right now we are in our EC2 virtual machine. So I&#8217;m no longer on my MacOS what this means is I&#8217;m currently in a virtual machine running somewhere in AWS datacenter.<\/p>\n\n\n\n<p>Use command &#8220;hostname&#8221; to check IP address of server.<\/p>\n\n\n\n<div style=\"height:30px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img decoding=\"async\" width=\"581\" height=\"207\" src=\"https:\/\/devclouds.io\/blog\/wp-content\/uploads\/2023\/01\/Screenshot_28.jpg\" alt=\"hostname command\" class=\"wp-image-2560\" srcset=\"https:\/\/devclouds.io\/blog\/wp-content\/uploads\/2023\/01\/Screenshot_28.jpg 581w, https:\/\/devclouds.io\/blog\/wp-content\/uploads\/2023\/01\/Screenshot_28-300x107.jpg 300w\" sizes=\"(max-width: 581px) 100vw, 581px\" \/><\/figure>\n<\/div>\n\n\n<div style=\"height:30px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p>Okay so sit tight and relax before we wrap up this article need to quickly show you how to stop your instance.<\/p>\n\n\n\n<div style=\"height:30px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large is-resized\"><img decoding=\"async\" src=\"https:\/\/devclouds.io\/blog\/wp-content\/uploads\/2023\/01\/Screenshot_29-1024x379.jpg\" alt=\"Instance State\" class=\"wp-image-2561\" width=\"768\" height=\"284\" srcset=\"https:\/\/devclouds.io\/blog\/wp-content\/uploads\/2023\/01\/Screenshot_29-1024x379.jpg 1024w, https:\/\/devclouds.io\/blog\/wp-content\/uploads\/2023\/01\/Screenshot_29-300x111.jpg 300w, https:\/\/devclouds.io\/blog\/wp-content\/uploads\/2023\/01\/Screenshot_29-768x284.jpg 768w, https:\/\/devclouds.io\/blog\/wp-content\/uploads\/2023\/01\/Screenshot_29.jpg 1049w\" sizes=\"(max-width: 768px) 100vw, 768px\" \/><\/figure>\n<\/div>\n\n\n<div style=\"height:30px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p>Okay so if you click on the &#8220;Actions&#8221; go to &#8220;Instance State&#8221; here you can use stop button now if you to terminate that instance. If you want to reboot that&#8217;s more less like restarting the computer. So while you&#8217;re still learning you can just stop and when you need to start learning again you click on the start.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>connecting to EC2 Virtual Machine in AWS instance.<\/p>\n","protected":false},"author":5,"featured_media":3500,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[],"class_list":["post-2517","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-hosting"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v19.6 (Yoast SEO v19.14) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Connecting to EC2 Virtual Machine - The Official DevClouds Blogs<\/title>\n<meta name=\"description\" content=\"Connecting to EC2 Virtual Machine | Setup EC2 Security Group to access Instance from all over the world | SSH\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/devclouds.io\/blog\/connecting-to-ec2-virtual-machine\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Connecting to EC2 Virtual Machine\" \/>\n<meta property=\"og:description\" content=\"Connecting to EC2 Virtual Machine | Setup EC2 Security Group to access Instance from all over the world | SSH\" \/>\n<meta property=\"og:url\" content=\"https:\/\/devclouds.io\/blog\/connecting-to-ec2-virtual-machine\/\" \/>\n<meta property=\"og:site_name\" content=\"The Official DevClouds Blogs\" \/>\n<meta property=\"article:published_time\" content=\"2023-01-11T20:01:46+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-01-22T15:16:59+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/devclouds.io\/blog\/wp-content\/uploads\/2023\/01\/Connecting-to-EC2.png\" \/>\n\t<meta property=\"og:image:width\" content=\"750\" \/>\n\t<meta property=\"og:image:height\" content=\"400\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"hammad\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"hammad\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/devclouds.io\/blog\/connecting-to-ec2-virtual-machine\/\",\"url\":\"https:\/\/devclouds.io\/blog\/connecting-to-ec2-virtual-machine\/\",\"name\":\"Connecting to EC2 Virtual Machine - The Official DevClouds Blogs\",\"isPartOf\":{\"@id\":\"https:\/\/devclouds.io\/blog\/#website\"},\"datePublished\":\"2023-01-11T20:01:46+00:00\",\"dateModified\":\"2023-01-22T15:16:59+00:00\",\"author\":{\"@id\":\"https:\/\/devclouds.io\/blog\/#\/schema\/person\/29fe135874604a656a492f57fb43211d\"},\"description\":\"Connecting to EC2 Virtual Machine | Setup EC2 Security Group to access Instance from all over the world | SSH\",\"breadcrumb\":{\"@id\":\"https:\/\/devclouds.io\/blog\/connecting-to-ec2-virtual-machine\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/devclouds.io\/blog\/connecting-to-ec2-virtual-machine\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/devclouds.io\/blog\/connecting-to-ec2-virtual-machine\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/devclouds.io\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Connecting to EC2 Virtual Machine\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/devclouds.io\/blog\/#website\",\"url\":\"https:\/\/devclouds.io\/blog\/\",\"name\":\"The Official DevClouds Blogs\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/devclouds.io\/blog\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/devclouds.io\/blog\/#\/schema\/person\/29fe135874604a656a492f57fb43211d\",\"name\":\"hammad\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/devclouds.io\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/19d1520a5ed46e5c53b8333bc3a9bddb9f28e057d9722fbb8e979edd11e22faf?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/19d1520a5ed46e5c53b8333bc3a9bddb9f28e057d9722fbb8e979edd11e22faf?s=96&d=mm&r=g\",\"caption\":\"hammad\"},\"url\":\"https:\/\/devclouds.io\/blog\/author\/hammad\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Connecting to EC2 Virtual Machine - The Official DevClouds Blogs","description":"Connecting to EC2 Virtual Machine | Setup EC2 Security Group to access Instance from all over the world | SSH","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/devclouds.io\/blog\/connecting-to-ec2-virtual-machine\/","og_locale":"en_US","og_type":"article","og_title":"Connecting to EC2 Virtual Machine","og_description":"Connecting to EC2 Virtual Machine | Setup EC2 Security Group to access Instance from all over the world | SSH","og_url":"https:\/\/devclouds.io\/blog\/connecting-to-ec2-virtual-machine\/","og_site_name":"The Official DevClouds Blogs","article_published_time":"2023-01-11T20:01:46+00:00","article_modified_time":"2023-01-22T15:16:59+00:00","og_image":[{"width":750,"height":400,"url":"https:\/\/devclouds.io\/blog\/wp-content\/uploads\/2023\/01\/Connecting-to-EC2.png","type":"image\/png"}],"author":"hammad","twitter_card":"summary_large_image","twitter_misc":{"Written by":"hammad","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/devclouds.io\/blog\/connecting-to-ec2-virtual-machine\/","url":"https:\/\/devclouds.io\/blog\/connecting-to-ec2-virtual-machine\/","name":"Connecting to EC2 Virtual Machine - The Official DevClouds Blogs","isPartOf":{"@id":"https:\/\/devclouds.io\/blog\/#website"},"datePublished":"2023-01-11T20:01:46+00:00","dateModified":"2023-01-22T15:16:59+00:00","author":{"@id":"https:\/\/devclouds.io\/blog\/#\/schema\/person\/29fe135874604a656a492f57fb43211d"},"description":"Connecting to EC2 Virtual Machine | Setup EC2 Security Group to access Instance from all over the world | SSH","breadcrumb":{"@id":"https:\/\/devclouds.io\/blog\/connecting-to-ec2-virtual-machine\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/devclouds.io\/blog\/connecting-to-ec2-virtual-machine\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/devclouds.io\/blog\/connecting-to-ec2-virtual-machine\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/devclouds.io\/blog\/"},{"@type":"ListItem","position":2,"name":"Connecting to EC2 Virtual Machine"}]},{"@type":"WebSite","@id":"https:\/\/devclouds.io\/blog\/#website","url":"https:\/\/devclouds.io\/blog\/","name":"The Official DevClouds Blogs","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/devclouds.io\/blog\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/devclouds.io\/blog\/#\/schema\/person\/29fe135874604a656a492f57fb43211d","name":"hammad","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/devclouds.io\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/19d1520a5ed46e5c53b8333bc3a9bddb9f28e057d9722fbb8e979edd11e22faf?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/19d1520a5ed46e5c53b8333bc3a9bddb9f28e057d9722fbb8e979edd11e22faf?s=96&d=mm&r=g","caption":"hammad"},"url":"https:\/\/devclouds.io\/blog\/author\/hammad\/"}]}},"_links":{"self":[{"href":"https:\/\/devclouds.io\/blog\/wp-json\/wp\/v2\/posts\/2517","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devclouds.io\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devclouds.io\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devclouds.io\/blog\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/devclouds.io\/blog\/wp-json\/wp\/v2\/comments?post=2517"}],"version-history":[{"count":7,"href":"https:\/\/devclouds.io\/blog\/wp-json\/wp\/v2\/posts\/2517\/revisions"}],"predecessor-version":[{"id":3137,"href":"https:\/\/devclouds.io\/blog\/wp-json\/wp\/v2\/posts\/2517\/revisions\/3137"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devclouds.io\/blog\/wp-json\/wp\/v2\/media\/3500"}],"wp:attachment":[{"href":"https:\/\/devclouds.io\/blog\/wp-json\/wp\/v2\/media?parent=2517"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devclouds.io\/blog\/wp-json\/wp\/v2\/categories?post=2517"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devclouds.io\/blog\/wp-json\/wp\/v2\/tags?post=2517"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}