{"id":3373,"date":"2023-01-05T15:58:35","date_gmt":"2023-01-05T15:58:35","guid":{"rendered":"https:\/\/manorinfinity.com\/?p=3373"},"modified":"2023-01-05T15:58:41","modified_gmt":"2023-01-05T15:58:41","slug":"connecting-ec2-instances-hassle-free","status":"publish","type":"post","link":"https:\/\/manorinfinity.com\/blog\/2023\/01\/05\/connecting-ec2-instances-hassle-free\/","title":{"rendered":"Connecting EC2 Instances: Hassle Free"},"content":{"rendered":"\n<p>Creating EC2 instances is as easy as pressing a button. But, connecting to EC2 is not as easy. There are basically two easy ways to connect to ec2 via windows and mac respectively. Macs are famous for the simplicity they bring to a developers life. In this case also macs make it super easy to connect to EC2 compared to windows. Before you get started with this tutorial you will need pem key which a private file that you are requested to download by amazon when you first create an instance. <\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Putty: The Magician<\/h2>\n\n\n\n<p>Putty is a software for windows that allows you to connect to ec2 instances with ease. You can download putty by <a href=\"http:\/\/www.chiark.greenend.org.uk\/~sgtatham\/putty\/\">clicking here<\/a>. Once you download and install putty you will see two apps putty and puttygen. First you need to open PuttyGen. Here in type of key you need to select RSA and choose load to browse your pem file. By default puttygen searches only for ppk files. Click on ppk files dropdown and select all files. Now you can save your key to your local machine. <\/p>\n\n\n\n<p>Once converted now you need to open putty main app. Now you will need host name of your ec2 instance you can simply copy that from ec2 settings page. it will be someting like ec2@ipaddress. Paste that in hostname select ssh as connection type and 22 as port. Now in the side pane go to connections -> ssh -> auth -> credentials and browse your ppk file here. Now click open a new terminal windows should open where it will ask for your username and password if any. Now you are connected. <\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Mac: The Magic<\/h2>\n\n\n\n<p>When it comes to mac you only need to enter two commands in your terminal. Once you have downloaded pem file in your downloads folder cd your terminal into downloads folder and enter these two commands. ec2@ipaddress refers to your ec2 instance public dns address. <\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>chmod 400 mykey.pem\nssh -i .\/mykey.pem ec2@ipaddress<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Creating EC2 instances is as easy as pressing a button. But, connecting to EC2 is not as easy. There are basically two easy ways to connect to ec2 via windows and mac respectively. Macs are famous for the simplicity they bring to a developers life. In this case also macs&#8230;<\/p>\n<div class=\"more-link-wrapper\"><a class=\"more-link\" href=\"https:\/\/manorinfinity.com\/blog\/2023\/01\/05\/connecting-ec2-instances-hassle-free\/\">Read the post<span class=\"screen-reader-text\">Connecting EC2 Instances: Hassle Free<\/span><\/a><\/div>\n","protected":false},"author":1,"featured_media":3361,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[1],"tags":[],"class_list":["post-3373","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-infinity-fitness","excerpt","zoom","full-without-featured","even","excerpt-0"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v20.12 (Yoast SEO v26.8) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>Connecting EC2 Instances: Hassle Free | ManOrInfinity<\/title>\n<meta name=\"description\" content=\"how do you connect to ec2? connect ec2 to mac. connect ec2 to windows. putty what is puttygen how to convert pem to ppk file.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/manorinfinity.com\/blog\/2023\/01\/05\/connecting-ec2-instances-hassle-free\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Connecting EC2 Instances: Hassle Free\" \/>\n<meta property=\"og:url\" content=\"https:\/\/manorinfinity.com\/blog\/2023\/01\/05\/connecting-ec2-instances-hassle-free\/\" \/>\n<meta property=\"og:site_name\" content=\"ManOrInfinity\" \/>\n<meta property=\"article:published_time\" content=\"2023-01-05T15:58:35+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-01-05T15:58:41+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/i0.wp.com\/manorinfinity.com\/blog\/wp-content\/uploads\/2022\/12\/download.jpeg?fit=1320%2C742&ssl=1\" \/>\n\t<meta property=\"og:image:width\" content=\"1320\" \/>\n\t<meta property=\"og:image:height\" content=\"742\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"manorinfinity\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@manorinfinity\" \/>\n<meta name=\"twitter:site\" content=\"@manorinfinity\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"manorinfinity\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/manorinfinity.com\/blog\/2023\/01\/05\/connecting-ec2-instances-hassle-free\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/manorinfinity.com\/blog\/2023\/01\/05\/connecting-ec2-instances-hassle-free\/\"},\"author\":{\"name\":\"manorinfinity\",\"@id\":\"https:\/\/manorinfinity.com\/blog\/#\/schema\/person\/1172b1895b5eb7e49cc8640e49255901\"},\"headline\":\"Connecting EC2 Instances: Hassle Free\",\"datePublished\":\"2023-01-05T15:58:35+00:00\",\"dateModified\":\"2023-01-05T15:58:41+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/manorinfinity.com\/blog\/2023\/01\/05\/connecting-ec2-instances-hassle-free\/\"},\"wordCount\":328,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/manorinfinity.com\/blog\/#\/schema\/person\/1172b1895b5eb7e49cc8640e49255901\"},\"image\":{\"@id\":\"https:\/\/manorinfinity.com\/blog\/2023\/01\/05\/connecting-ec2-instances-hassle-free\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/i0.wp.com\/manorinfinity.com\/blog\/wp-content\/uploads\/2022\/12\/download.jpeg?fit=1320%2C742&ssl=1\",\"articleSection\":[\"Infinity Fitness\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/manorinfinity.com\/blog\/2023\/01\/05\/connecting-ec2-instances-hassle-free\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/manorinfinity.com\/blog\/2023\/01\/05\/connecting-ec2-instances-hassle-free\/\",\"url\":\"https:\/\/manorinfinity.com\/blog\/2023\/01\/05\/connecting-ec2-instances-hassle-free\/\",\"name\":\"Connecting EC2 Instances: Hassle Free | ManOrInfinity\",\"isPartOf\":{\"@id\":\"https:\/\/manorinfinity.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/manorinfinity.com\/blog\/2023\/01\/05\/connecting-ec2-instances-hassle-free\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/manorinfinity.com\/blog\/2023\/01\/05\/connecting-ec2-instances-hassle-free\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/i0.wp.com\/manorinfinity.com\/blog\/wp-content\/uploads\/2022\/12\/download.jpeg?fit=1320%2C742&ssl=1\",\"datePublished\":\"2023-01-05T15:58:35+00:00\",\"dateModified\":\"2023-01-05T15:58:41+00:00\",\"description\":\"how do you connect to ec2? connect ec2 to mac. connect ec2 to windows. putty what is puttygen how to convert pem to ppk file.\",\"breadcrumb\":{\"@id\":\"https:\/\/manorinfinity.com\/blog\/2023\/01\/05\/connecting-ec2-instances-hassle-free\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/manorinfinity.com\/blog\/2023\/01\/05\/connecting-ec2-instances-hassle-free\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/manorinfinity.com\/blog\/2023\/01\/05\/connecting-ec2-instances-hassle-free\/#primaryimage\",\"url\":\"https:\/\/i0.wp.com\/manorinfinity.com\/blog\/wp-content\/uploads\/2022\/12\/download.jpeg?fit=1320%2C742&ssl=1\",\"contentUrl\":\"https:\/\/i0.wp.com\/manorinfinity.com\/blog\/wp-content\/uploads\/2022\/12\/download.jpeg?fit=1320%2C742&ssl=1\",\"width\":1320,\"height\":742},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/manorinfinity.com\/blog\/2023\/01\/05\/connecting-ec2-instances-hassle-free\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/manorinfinity.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Connecting EC2 Instances: Hassle Free\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/manorinfinity.com\/blog\/#website\",\"url\":\"https:\/\/manorinfinity.com\/blog\/\",\"name\":\"ManOrInfinity\",\"description\":\"Thrive towards greatness\",\"publisher\":{\"@id\":\"https:\/\/manorinfinity.com\/blog\/#\/schema\/person\/1172b1895b5eb7e49cc8640e49255901\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/manorinfinity.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\/\/manorinfinity.com\/blog\/#\/schema\/person\/1172b1895b5eb7e49cc8640e49255901\",\"name\":\"manorinfinity\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/manorinfinity.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"http:\/\/manorinfinity.com\/wp-content\/uploads\/2023\/06\/moi-logo.png\",\"contentUrl\":\"http:\/\/manorinfinity.com\/wp-content\/uploads\/2023\/06\/moi-logo.png\",\"width\":282,\"height\":260,\"caption\":\"manorinfinity\"},\"logo\":{\"@id\":\"https:\/\/manorinfinity.com\/blog\/#\/schema\/person\/image\/\"},\"description\":\"Complex Problem Solver, Outloud Thinker, An Outstanding Writer, and a very curious human being\",\"sameAs\":[\"http:\/\/manorinfinity.com\"],\"url\":\"https:\/\/manorinfinity.com\/blog\/author\/manorinfinity\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Connecting EC2 Instances: Hassle Free | ManOrInfinity","description":"how do you connect to ec2? connect ec2 to mac. connect ec2 to windows. putty what is puttygen how to convert pem to ppk file.","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:\/\/manorinfinity.com\/blog\/2023\/01\/05\/connecting-ec2-instances-hassle-free\/","og_locale":"en_US","og_type":"article","og_title":"Connecting EC2 Instances: Hassle Free","og_url":"https:\/\/manorinfinity.com\/blog\/2023\/01\/05\/connecting-ec2-instances-hassle-free\/","og_site_name":"ManOrInfinity","article_published_time":"2023-01-05T15:58:35+00:00","article_modified_time":"2023-01-05T15:58:41+00:00","og_image":[{"width":1320,"height":742,"url":"https:\/\/i0.wp.com\/manorinfinity.com\/blog\/wp-content\/uploads\/2022\/12\/download.jpeg?fit=1320%2C742&ssl=1","type":"image\/jpeg"}],"author":"manorinfinity","twitter_card":"summary_large_image","twitter_creator":"@manorinfinity","twitter_site":"@manorinfinity","twitter_misc":{"Written by":"manorinfinity","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/manorinfinity.com\/blog\/2023\/01\/05\/connecting-ec2-instances-hassle-free\/#article","isPartOf":{"@id":"https:\/\/manorinfinity.com\/blog\/2023\/01\/05\/connecting-ec2-instances-hassle-free\/"},"author":{"name":"manorinfinity","@id":"https:\/\/manorinfinity.com\/blog\/#\/schema\/person\/1172b1895b5eb7e49cc8640e49255901"},"headline":"Connecting EC2 Instances: Hassle Free","datePublished":"2023-01-05T15:58:35+00:00","dateModified":"2023-01-05T15:58:41+00:00","mainEntityOfPage":{"@id":"https:\/\/manorinfinity.com\/blog\/2023\/01\/05\/connecting-ec2-instances-hassle-free\/"},"wordCount":328,"commentCount":0,"publisher":{"@id":"https:\/\/manorinfinity.com\/blog\/#\/schema\/person\/1172b1895b5eb7e49cc8640e49255901"},"image":{"@id":"https:\/\/manorinfinity.com\/blog\/2023\/01\/05\/connecting-ec2-instances-hassle-free\/#primaryimage"},"thumbnailUrl":"https:\/\/i0.wp.com\/manorinfinity.com\/blog\/wp-content\/uploads\/2022\/12\/download.jpeg?fit=1320%2C742&ssl=1","articleSection":["Infinity Fitness"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/manorinfinity.com\/blog\/2023\/01\/05\/connecting-ec2-instances-hassle-free\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/manorinfinity.com\/blog\/2023\/01\/05\/connecting-ec2-instances-hassle-free\/","url":"https:\/\/manorinfinity.com\/blog\/2023\/01\/05\/connecting-ec2-instances-hassle-free\/","name":"Connecting EC2 Instances: Hassle Free | ManOrInfinity","isPartOf":{"@id":"https:\/\/manorinfinity.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/manorinfinity.com\/blog\/2023\/01\/05\/connecting-ec2-instances-hassle-free\/#primaryimage"},"image":{"@id":"https:\/\/manorinfinity.com\/blog\/2023\/01\/05\/connecting-ec2-instances-hassle-free\/#primaryimage"},"thumbnailUrl":"https:\/\/i0.wp.com\/manorinfinity.com\/blog\/wp-content\/uploads\/2022\/12\/download.jpeg?fit=1320%2C742&ssl=1","datePublished":"2023-01-05T15:58:35+00:00","dateModified":"2023-01-05T15:58:41+00:00","description":"how do you connect to ec2? connect ec2 to mac. connect ec2 to windows. putty what is puttygen how to convert pem to ppk file.","breadcrumb":{"@id":"https:\/\/manorinfinity.com\/blog\/2023\/01\/05\/connecting-ec2-instances-hassle-free\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/manorinfinity.com\/blog\/2023\/01\/05\/connecting-ec2-instances-hassle-free\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/manorinfinity.com\/blog\/2023\/01\/05\/connecting-ec2-instances-hassle-free\/#primaryimage","url":"https:\/\/i0.wp.com\/manorinfinity.com\/blog\/wp-content\/uploads\/2022\/12\/download.jpeg?fit=1320%2C742&ssl=1","contentUrl":"https:\/\/i0.wp.com\/manorinfinity.com\/blog\/wp-content\/uploads\/2022\/12\/download.jpeg?fit=1320%2C742&ssl=1","width":1320,"height":742},{"@type":"BreadcrumbList","@id":"https:\/\/manorinfinity.com\/blog\/2023\/01\/05\/connecting-ec2-instances-hassle-free\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/manorinfinity.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Connecting EC2 Instances: Hassle Free"}]},{"@type":"WebSite","@id":"https:\/\/manorinfinity.com\/blog\/#website","url":"https:\/\/manorinfinity.com\/blog\/","name":"ManOrInfinity","description":"Thrive towards greatness","publisher":{"@id":"https:\/\/manorinfinity.com\/blog\/#\/schema\/person\/1172b1895b5eb7e49cc8640e49255901"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/manorinfinity.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/manorinfinity.com\/blog\/#\/schema\/person\/1172b1895b5eb7e49cc8640e49255901","name":"manorinfinity","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/manorinfinity.com\/blog\/#\/schema\/person\/image\/","url":"http:\/\/manorinfinity.com\/wp-content\/uploads\/2023\/06\/moi-logo.png","contentUrl":"http:\/\/manorinfinity.com\/wp-content\/uploads\/2023\/06\/moi-logo.png","width":282,"height":260,"caption":"manorinfinity"},"logo":{"@id":"https:\/\/manorinfinity.com\/blog\/#\/schema\/person\/image\/"},"description":"Complex Problem Solver, Outloud Thinker, An Outstanding Writer, and a very curious human being","sameAs":["http:\/\/manorinfinity.com"],"url":"https:\/\/manorinfinity.com\/blog\/author\/manorinfinity\/"}]}},"jetpack_featured_media_url":"https:\/\/i0.wp.com\/manorinfinity.com\/blog\/wp-content\/uploads\/2022\/12\/download.jpeg?fit=1320%2C742&ssl=1","jetpack_sharing_enabled":true,"jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/manorinfinity.com\/blog\/wp-json\/wp\/v2\/posts\/3373","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/manorinfinity.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/manorinfinity.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/manorinfinity.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/manorinfinity.com\/blog\/wp-json\/wp\/v2\/comments?post=3373"}],"version-history":[{"count":1,"href":"https:\/\/manorinfinity.com\/blog\/wp-json\/wp\/v2\/posts\/3373\/revisions"}],"predecessor-version":[{"id":3384,"href":"https:\/\/manorinfinity.com\/blog\/wp-json\/wp\/v2\/posts\/3373\/revisions\/3384"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/manorinfinity.com\/blog\/wp-json\/wp\/v2\/media\/3361"}],"wp:attachment":[{"href":"https:\/\/manorinfinity.com\/blog\/wp-json\/wp\/v2\/media?parent=3373"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/manorinfinity.com\/blog\/wp-json\/wp\/v2\/categories?post=3373"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/manorinfinity.com\/blog\/wp-json\/wp\/v2\/tags?post=3373"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}