{"id":3198,"date":"2024-03-31T12:28:41","date_gmt":"2024-03-31T06:58:41","guid":{"rendered":"https:\/\/www.veeble.org\/kb\/?p=3198"},"modified":"2025-03-05T12:56:56","modified_gmt":"2025-03-05T07:26:56","slug":"how-to-connect-to-your-ec2-instance-using-putty","status":"publish","type":"post","link":"https:\/\/www.veeble.com\/kb\/how-to-connect-to-your-ec2-instance-using-putty\/","title":{"rendered":"How to Connect your EC2 Instance using PuTTY"},"content":{"rendered":"\n<figure class=\"wp-block-image aligncenter size-large is-resized\"><a href=\"https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/03\/How-to-Connect-your-EC2-Instance-using-PuTTY.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"576\" src=\"https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/03\/How-to-Connect-your-EC2-Instance-using-PuTTY-1024x576.png\" alt=\"\" class=\"wp-image-7346\" style=\"width:710px;height:auto\" srcset=\"https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/03\/How-to-Connect-your-EC2-Instance-using-PuTTY-1024x576.png 1024w, https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/03\/How-to-Connect-your-EC2-Instance-using-PuTTY-300x169.png 300w, https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/03\/How-to-Connect-your-EC2-Instance-using-PuTTY-768x432.png 768w, https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/03\/How-to-Connect-your-EC2-Instance-using-PuTTY.png 1366w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p><a href=\"https:\/\/aws.amazon.com\/pm\/ec2\/?gclid=Cj0KCQjwir2xBhC_ARIsAMTXk84HplOmectELyxEWZ00WitVS8aF_aHlRra0wjbfsRCCPJNF3cHy6IgaArZMEALw_wcB&amp;trk=32f4fbd0-ffda-4695-a60c-8857fab7d0dd&amp;sc_channel=ps&amp;ef_id=Cj0KCQjwir2xBhC_ARIsAMTXk84HplOmectELyxEWZ00WitVS8aF_aHlRra0wjbfsRCCPJNF3cHy6IgaArZMEALw_wcB:G:s&amp;s_kwcid=AL!4422!3!476942909971!e!!g!!amazon%20ec2!11539707735!118057053088\" target=\"_blank\" rel=\"noopener\">Amazon Elastic Compute Cloud<\/a> (Amazon EC2) is a web service that provides resizable compute capacity in the cloud. Users can launch virtual servers known as instances and configure them according to their requirements. One of the common ways to connect to an EC2 instance, especially if it runs a Linux-based operating system like Ubuntu or Amazon Linux, is using <a href=\"https:\/\/www.putty.org\/\" target=\"_blank\" rel=\"noopener\">PuTTY<\/a>, a popular SSH client for Windows.<\/p>\n\n\n\n<p>Here I provide a step-by-step guide on how to connect to your EC2 instance using PuTTY. By following these instructions, you will be able to establish a secure SSH connection to your EC2 instance and manage it remotely.<\/p>\n\n\n\n<p>Creating an EC2 instance on Amazon Web Services (AWS) involves several steps to configure the instance type, storage, networking, security, and other settings. Here&#8217;s a comprehensive guide on how to create an EC2 instance:<\/p>\n\n\n<div role=\"navigation\" aria-label=\"Table of Contents\" class=\"simpletoc wp-block-simpletoc-toc\"><h2 style=\"margin: 0;\"><button type=\"button\" aria-expanded=\"false\" aria-controls=\"simpletoc-content-container\" class=\"simpletoc-collapsible\">Table of Contents<span class=\"simpletoc-icon\" aria-hidden=\"true\"><\/span><\/button><\/h2><div id=\"simpletoc-content-container\" class=\"simpletoc-content\"><style>html { scroll-behavior: smooth; }<\/style><ul class=\"simpletoc-list\">\n<li><a href=\"#prerequisites\">Prerequisites<\/a>\n\n<\/li>\n<li><a href=\"#how-to-create-an-ec2-instance\">How to create an EC2 instance<\/a>\n\n<\/li>\n<li><a href=\"#how-to-generate-a-putty-private-key-ppk-file\">How to Generate a PuTTY Private Key (.ppk) File<\/a>\n\n<\/li>\n<li><a href=\"#how-to-connect-ec2\">How to Connect  EC2<\/a>\n\n<\/li>\n<li><a href=\"#conclusion\">Conclusion<\/a>\n<\/li><\/ul><\/div><\/div>\n\n<h2 class=\"wp-block-heading\" id=\"prerequisites\">Prerequisites<\/h2>\n\n\n<p>Before proceeding, ensure you have the following prerequisites in place:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>An active AWS account with access to the Amazon EC2 service.<\/li>\n\n\n\n<li>An EC2 instance launched and running in your AWS account.<\/li>\n\n\n\n<li>PuTTY installed on your local Windows machine. If you haven&#8217;t installed PuTTY yet, download it from the official website: <a href=\"https:\/\/www.putty.org\/\" target=\"_blank\" rel=\"noopener\">PuTTY Download<\/a><\/li>\n<\/ol>\n\n\n<h2 class=\"wp-block-heading\" id=\"how-to-create-an-ec2-instance\">How to create an EC2 instance <\/h2>\n\n\n<p><strong>1: Log in to the AWS Management Console<\/strong><\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Open your web browser and go to the AWS Management Console: <a href=\"https:\/\/aws.amazon.com\/console\/\" target=\"_blank\" rel=\"noopener\">AWS Console<\/a>.<\/li>\n\n\n\n<li>Log in using your AWS account credentials.<\/li>\n<\/ol>\n\n\n\n<p><strong>2: Navigate to the EC2 Dashboard<\/strong><\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Once logged in, click on &#8220;Services&#8221; in the top menu bar.<\/li>\n\n\n\n<li>Under &#8220;Compute,&#8221; select &#8220;EC2&#8221; to access the EC2 Dashboard.<\/li>\n<\/ol>\n\n\n\n<p><strong>3: Launch Instance<\/strong><\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>In the EC2 Dashboard, click on the &#8220;Instances&#8221; link in the left-hand navigation pane.<\/li>\n\n\n\n<li>Click the &#8220;Launch Instance&#8221; button to begin the instance creation process.<\/li>\n<\/ol>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/www.veeble.org\/kb\/wp-content\/uploads\/2024\/03\/launch.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"308\" src=\"https:\/\/www.veeble.org\/kb\/wp-content\/uploads\/2024\/03\/launch-1024x308.png\" alt=\"\" class=\"wp-image-3201\" srcset=\"https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/03\/launch-1024x308.png 1024w, https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/03\/launch-300x90.png 300w, https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/03\/launch-768x231.png 768w, https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/03\/launch-1536x462.png 1536w, https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/03\/launch.png 1880w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p><strong>4: Choose an Amazon Machine Image (AMI)<\/strong><\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>In the &#8220;Choose an Amazon Machine Image (AMI)&#8221; step:<\/li>\n<\/ol>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Select an AMI based on your requirements (e.g., Amazon Linux 2, Ubuntu Server, Windows Server).<\/li>\n\n\n\n<li>Click &#8220;Select&#8221; to proceed.<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/www.veeble.org\/kb\/wp-content\/uploads\/2024\/03\/Screenshot-2024-03-26-130837.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"602\" src=\"https:\/\/www.veeble.org\/kb\/wp-content\/uploads\/2024\/03\/Screenshot-2024-03-26-130837-1024x602.png\" alt=\"\" class=\"wp-image-3202\" srcset=\"https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/03\/Screenshot-2024-03-26-130837-1024x602.png 1024w, https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/03\/Screenshot-2024-03-26-130837-300x176.png 300w, https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/03\/Screenshot-2024-03-26-130837-768x451.png 768w, https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/03\/Screenshot-2024-03-26-130837.png 1070w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p><strong>5: Choose an Instance Type<\/strong><\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>In the &#8220;Choose an Instance Type&#8221; step:<\/li>\n<\/ol>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Select the instance type based on your workload and performance needs.<\/li>\n\n\n\n<li>Click &#8220;Next: Configure Instance Details&#8221; to continue.<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/www.veeble.org\/kb\/wp-content\/uploads\/2024\/03\/Screenshot-2024-03-26-130914.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"388\" src=\"https:\/\/www.veeble.org\/kb\/wp-content\/uploads\/2024\/03\/Screenshot-2024-03-26-130914-1024x388.png\" alt=\"\" class=\"wp-image-3203\" srcset=\"https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/03\/Screenshot-2024-03-26-130914-1024x388.png 1024w, https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/03\/Screenshot-2024-03-26-130914-300x114.png 300w, https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/03\/Screenshot-2024-03-26-130914-768x291.png 768w, https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/03\/Screenshot-2024-03-26-130914.png 1101w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p><strong>6: Configure Instance Details<\/strong><\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>In the &#8220;Configure Instance Details&#8221; step:<\/li>\n<\/ol>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Configure settings such as the number of instances, VPC, subnet, IAM role (if applicable), etc.<\/li>\n\n\n\n<li>Customize other options as needed.<\/li>\n\n\n\n<li>Click &#8220;Next: Add Storage&#8221; to proceed.<\/li>\n<\/ul>\n\n\n\n<p><strong>7: Select Key Pair<\/strong><\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>In the &#8220;Select an existing key pair or create a new key pair&#8221; pop-up window:<\/li>\n<\/ol>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Choose an existing key pair or create a new one.<\/li>\n\n\n\n<li>Download the private key (.pem file) if you are creating a new key pair.<\/li>\n\n\n\n<li>Click &#8220;Launch Instances&#8221; to finalize and launch your EC2 instance.<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><a href=\"https:\/\/www.veeble.org\/kb\/wp-content\/uploads\/2024\/03\/Screenshot-2024-03-26-130936.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"607\" src=\"https:\/\/www.veeble.org\/kb\/wp-content\/uploads\/2024\/03\/Screenshot-2024-03-26-130936-1024x607.png\" alt=\"\" class=\"wp-image-3207\" style=\"width:493px;height:auto\" srcset=\"https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/03\/Screenshot-2024-03-26-130936-1024x607.png 1024w, https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/03\/Screenshot-2024-03-26-130936-300x178.png 300w, https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/03\/Screenshot-2024-03-26-130936-768x456.png 768w, https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/03\/Screenshot-2024-03-26-130936.png 1116w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p><strong>8: Add Storage<\/strong><\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>In the &#8220;Add Storage&#8221; step:<\/li>\n<\/ol>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Specify the size and type of the root volume (EBS) for your instance.<\/li>\n\n\n\n<li>Add additional volumes if required.<\/li>\n\n\n\n<li>Click &#8220;Next: Add Tags&#8221; to continue.<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/www.veeble.org\/kb\/wp-content\/uploads\/2024\/03\/Screenshot-2024-03-26-131110.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"511\" src=\"https:\/\/www.veeble.org\/kb\/wp-content\/uploads\/2024\/03\/Screenshot-2024-03-26-131110-1024x511.png\" alt=\"\" class=\"wp-image-3204\" srcset=\"https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/03\/Screenshot-2024-03-26-131110-1024x511.png 1024w, https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/03\/Screenshot-2024-03-26-131110-300x150.png 300w, https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/03\/Screenshot-2024-03-26-131110-768x383.png 768w, https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/03\/Screenshot-2024-03-26-131110.png 1087w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p><strong>9: Add Tags (Optional)<\/strong><\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>In the &#8220;Add Tags&#8221; step:<\/li>\n<\/ol>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Optionally, add tags to your instance for better organization and management.<\/li>\n\n\n\n<li>Tags are key-value pairs (e.g., Name: MyEC2Instance).<\/li>\n\n\n\n<li>Click &#8220;Next: Configure Security Group&#8221; to proceed.<\/li>\n<\/ul>\n\n\n\n<p><strong>10: Configure Security Group<\/strong><\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>In the &#8220;Configure Security Group&#8221; step:<\/li>\n<\/ol>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Create a new security group or select an existing one.<\/li>\n\n\n\n<li>Configure inbound and outbound rules to control traffic to and from your instance (e.g., SSH, HTTP, HTTPS).<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><a href=\"https:\/\/www.veeble.org\/kb\/wp-content\/uploads\/2024\/03\/Screenshot-2024-03-26-131029.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"490\" src=\"https:\/\/www.veeble.org\/kb\/wp-content\/uploads\/2024\/03\/Screenshot-2024-03-26-131029-1024x490.png\" alt=\"\" class=\"wp-image-3205\" style=\"width:619px;height:auto\" srcset=\"https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/03\/Screenshot-2024-03-26-131029-1024x490.png 1024w, https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/03\/Screenshot-2024-03-26-131029-300x144.png 300w, https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/03\/Screenshot-2024-03-26-131029-768x368.png 768w, https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/03\/Screenshot-2024-03-26-131029.png 1042w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p><strong>11: Review Instance Launch<\/strong><\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>In the &#8220;Review Instance Launch&#8221; step:<\/li>\n<\/ol>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Review all the configuration details of your instance.<\/li>\n\n\n\n<li>Make sure everything is set up correctly.<\/li>\n\n\n\n<li>Click &#8220;Launch&#8221; to start the instance creation process.<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><a href=\"https:\/\/www.veeble.org\/kb\/wp-content\/uploads\/2024\/03\/Screenshot-2024-03-26-131137.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" width=\"517\" height=\"759\" src=\"https:\/\/www.veeble.org\/kb\/wp-content\/uploads\/2024\/03\/Screenshot-2024-03-26-131137.png\" alt=\"\" class=\"wp-image-3206\" style=\"width:365px;height:auto\" srcset=\"https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/03\/Screenshot-2024-03-26-131137.png 517w, https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/03\/Screenshot-2024-03-26-131137-204x300.png 204w\" sizes=\"auto, (max-width: 517px) 100vw, 517px\" \/><\/a><\/figure>\n\n\n\n<p><strong>12: Access Your EC2 Instance<\/strong><\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Once the instance is launched successfully, you can view its status in the EC2 Dashboard under &#8220;Instances.&#8221;<\/li>\n\n\n\n<li>Use the downloaded private key (.pem file) to SSH into your instance if it&#8217;s a Linux-based instance or use Remote Desktop Protocol (RDP) for Windows instances.<\/li>\n<\/ol>\n\n\n\n<p>That&#8217;s it! You have successfully created an EC2 instance on AWS and can now start using it for your applications or development purposes. Make sure to manage and monitor your instances regularly through the AWS Management Console.<\/p>\n\n\n<h2 class=\"wp-block-heading\" id=\"how-to-generate-a-putty-private-key-ppk-file\">How to Generate a PuTTY Private Key (<em>.ppk<\/em>) File<\/h2>\n\n\n<p><strong>1: Download PuTTY and PuTTYgen<\/strong><\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>If you haven&#8217;t already, download PuTTY and PuTTYgen from the official PuTTY website: <a href=\"https:\/\/www.putty.org\/\" target=\"_blank\" rel=\"noopener\">PuTTY Download<\/a><\/li>\n\n\n\n<li>Install PuTTY on your Windows machine. During the installation process, PuTTYgen should also be installed.<\/li>\n<\/ol>\n\n\n\n<p><strong> 2: Convert the Private Key to PuTTY Format (.ppk)<\/strong><\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Open <a href=\"https:\/\/www.puttygen.com\/\" target=\"_blank\" rel=\"noopener\">PuTTYgen<\/a> by searching for it in your Windows start menu or by running <code>puttygen.exe<\/code> from the PuTTY installation directory.<\/li>\n\n\n\n<li>In PuTTYgen, click on the &#8220;Load&#8221; button.<\/li>\n<\/ol>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><a href=\"https:\/\/www.veeble.org\/kb\/wp-content\/uploads\/2024\/03\/Screenshot-2024-03-26-134646.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" width=\"897\" height=\"689\" src=\"https:\/\/www.veeble.org\/kb\/wp-content\/uploads\/2024\/03\/Screenshot-2024-03-26-134646.png\" alt=\"\" class=\"wp-image-3208\" style=\"width:518px;height:auto\" srcset=\"https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/03\/Screenshot-2024-03-26-134646.png 897w, https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/03\/Screenshot-2024-03-26-134646-300x230.png 300w, https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/03\/Screenshot-2024-03-26-134646-768x590.png 768w\" sizes=\"auto, (max-width: 897px) 100vw, 897px\" \/><\/a><\/figure>\n\n\n\n<p>    3. By default, PuTTYgen filters for &#8220;PuTTY Private Key Files (<em>.ppk).&#8221; Change the file type filter to &#8220;All Files (<\/em>.*)&#8221; to see your .pem private key file.<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><\/li>\n<\/ol>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><a href=\"https:\/\/www.veeble.org\/kb\/wp-content\/uploads\/2024\/03\/Screenshot-2024-03-26-202329.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" width=\"929\" height=\"706\" src=\"https:\/\/www.veeble.org\/kb\/wp-content\/uploads\/2024\/03\/Screenshot-2024-03-26-202329.png\" alt=\"\" class=\"wp-image-3210\" style=\"width:550px;height:auto\" srcset=\"https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/03\/Screenshot-2024-03-26-202329.png 929w, https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/03\/Screenshot-2024-03-26-202329-300x228.png 300w, https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/03\/Screenshot-2024-03-26-202329-768x584.png 768w\" sizes=\"auto, (max-width: 929px) 100vw, 929px\" \/><\/a><\/figure>\n\n\n\n<p>4. Navigate to the location of your .pem private key file, select it, and click &#8220;Open.&#8221;<\/p>\n\n\n\n<p>5. PuTTYgen will prompt you to confirm the conversion of the key. Click &#8220;OK&#8221; to continue.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><a href=\"https:\/\/www.veeble.org\/kb\/wp-content\/uploads\/2024\/03\/Screenshot-2024-03-26-202349.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" width=\"901\" height=\"704\" src=\"https:\/\/www.veeble.org\/kb\/wp-content\/uploads\/2024\/03\/Screenshot-2024-03-26-202349.png\" alt=\"\" class=\"wp-image-3211\" style=\"width:553px;height:auto\" srcset=\"https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/03\/Screenshot-2024-03-26-202349.png 901w, https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/03\/Screenshot-2024-03-26-202349-300x234.png 300w, https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/03\/Screenshot-2024-03-26-202349-768x600.png 768w\" sizes=\"auto, (max-width: 901px) 100vw, 901px\" \/><\/a><\/figure>\n\n\n\n<p>6. Optionally, you can set a passphrase for added security by entering it in the &#8220;Key passphrase&#8221; and &#8220;Confirm passphrase&#8221; fields. This step is optional but recommended.<\/p>\n\n\n\n<p>7. Click on the &#8220;Save private key&#8221; button to save the converted private key in PuTTY&#8217;s .ppk format.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><a href=\"https:\/\/www.veeble.org\/kb\/wp-content\/uploads\/2024\/03\/Screenshot-2024-03-26-202409.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" width=\"896\" height=\"711\" src=\"https:\/\/www.veeble.org\/kb\/wp-content\/uploads\/2024\/03\/Screenshot-2024-03-26-202409.png\" alt=\"\" class=\"wp-image-3212\" style=\"width:569px;height:auto\" srcset=\"https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/03\/Screenshot-2024-03-26-202409.png 896w, https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/03\/Screenshot-2024-03-26-202409-300x238.png 300w, https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/03\/Screenshot-2024-03-26-202409-768x609.png 768w\" sizes=\"auto, (max-width: 896px) 100vw, 896px\" \/><\/a><\/figure>\n\n\n\n<p>8. Choose a location to save the .ppk file and give it a descriptive name (e.g., mykey.ppk).<\/p>\n\n\n\n<p>9. Click &#8220;Save&#8221; to complete the process.<\/p>\n\n\n\n<p>Now you have successfully generated a PuTTY Private Key (.ppk) file from your original private key (.pem) file. This .ppk file can be used with PuTTY to connect securely to your AWS EC2 instances or other SSH servers. Remember to keep your private key files secure and never share them publicly or with unauthorized individuals.<\/p>\n\n\n\n<p><\/p>\n\n\n<h2 class=\"wp-block-heading\" id=\"how-to-connect-ec2\">How to Connect  EC2<\/h2>\n\n\n<ol class=\"wp-block-list\">\n<li>Open PuTTY on your Windows machine.<\/li>\n\n\n\n<li>In the &#8220;Category&#8221; pane on the left, expand the &#8220;SSH&#8221; category and click on &#8220;Auth.&#8221;<\/li>\n\n\n\n<li>Click on the &#8220;Browse&#8221; button next to &#8220;Private key file for authentication&#8221; and select the .ppk file you generated in Step 2.<\/li>\n<\/ol>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><a href=\"https:\/\/www.veeble.org\/kb\/wp-content\/uploads\/2024\/03\/Screenshot-2024-03-26-202950.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" width=\"667\" height=\"665\" src=\"https:\/\/www.veeble.org\/kb\/wp-content\/uploads\/2024\/03\/Screenshot-2024-03-26-202950.png\" alt=\"\" class=\"wp-image-3214\" style=\"width:459px;height:auto\" srcset=\"https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/03\/Screenshot-2024-03-26-202950.png 667w, https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/03\/Screenshot-2024-03-26-202950-300x300.png 300w, https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/03\/Screenshot-2024-03-26-202950-150x150.png 150w\" sizes=\"auto, (max-width: 667px) 100vw, 667px\" \/><\/a><\/figure>\n\n\n\n<p>4. Go back to the &#8220;Session&#8221; category in the &#8220;Category&#8221; pane.<\/p>\n\n\n\n<p>5. Enter the EC2 instance&#8217;s Public IP address into the &#8220;Host Name (or IP address)&#8221; field.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><a href=\"https:\/\/www.veeble.org\/kb\/wp-content\/uploads\/2024\/03\/Screenshot-2024-03-26-202847.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" width=\"667\" height=\"667\" src=\"https:\/\/www.veeble.org\/kb\/wp-content\/uploads\/2024\/03\/Screenshot-2024-03-26-202847.png\" alt=\"\" class=\"wp-image-3213\" style=\"width:422px;height:auto\" srcset=\"https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/03\/Screenshot-2024-03-26-202847.png 667w, https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/03\/Screenshot-2024-03-26-202847-300x300.png 300w, https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/03\/Screenshot-2024-03-26-202847-150x150.png 150w\" sizes=\"auto, (max-width: 667px) 100vw, 667px\" \/><\/a><\/figure>\n\n\n\n<p>6. Optionally, enter a name for your session in the &#8220;Saved Sessions&#8221; field and click &#8220;Save&#8221; to save these settings for future use.<\/p>\n\n\n\n<p>7. PuTTY will open a terminal window and attempt to establish an SSH connection to your EC2 instance.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><a href=\"https:\/\/www.veeble.org\/kb\/wp-content\/uploads\/2024\/03\/Screenshot-2024-03-26-203011.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" width=\"962\" height=\"567\" src=\"https:\/\/www.veeble.org\/kb\/wp-content\/uploads\/2024\/03\/Screenshot-2024-03-26-203011.png\" alt=\"\" class=\"wp-image-3215\" style=\"width:548px;height:auto\" srcset=\"https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/03\/Screenshot-2024-03-26-203011.png 962w, https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/03\/Screenshot-2024-03-26-203011-300x177.png 300w, https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/03\/Screenshot-2024-03-26-203011-768x453.png 768w\" sizes=\"auto, (max-width: 962px) 100vw, 962px\" \/><\/a><\/figure>\n\n\n\n<p>You are now connected to your EC2 instance via SSH using PuTTY. You can run commands and manage your instance from the terminal window.<\/p>\n\n\n<h2 class=\"wp-block-heading\" id=\"conclusion\">Conclusion<\/h2>\n\n\n<p>In conclusion, this article has outlined the steps to connect to your EC2 instance using PuTTY, including obtaining the instance&#8217;s Public IP, converting the private key to PuTTY format, configuring PuTTY sessions, and establishing an SSH connection. By following these steps, you can efficiently manage your EC2 instances on AWS from your Windows machine using PuTTY.<\/p>\n\n\n\n<div style=\"height:35px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<div class=\"wp-block-uagb-call-to-action uagb-block-3b152914 wp-block-button\"><div class=\"uagb-cta__wrap\"><h3 class=\"uagb-cta__title\">Skyrocket Your Website&#8217;s Performance with Veeble&#8217;s Fully Managed VPS<\/h3><p class=\"uagb-cta__desc\">Don&#8217;t settle for less. Choose Veeble&#8217;s fully managed VPS hosting and get the performance, security, and support you need to take your business to the next level.<\/p><\/div><div class=\"uagb-cta__buttons\"><a href=\"https:\/\/www.veeble.com\/in\/managed-vps\/\" class=\"uagb-cta__button-link-wrapper wp-block-button__link\" target=\"_blank\" rel=\"noopener noreferrer\">Explore Plans<svg xmlns=\"https:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 512 512\"><path d=\"M504.3 273.6l-112.1 104c-6.992 6.484-17.18 8.218-25.94 4.406c-8.758-3.812-14.42-12.45-14.42-21.1L351.9 288H32C14.33 288 .0002 273.7 .0002 255.1S14.33 224 32 224h319.9l0-72c0-9.547 5.66-18.19 14.42-22c8.754-3.809 18.95-2.075 25.94 4.41l112.1 104C514.6 247.9 514.6 264.1 504.3 273.6z\"><\/path><\/svg><\/a><\/div><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Amazon Elastic Compute Cloud (Amazon EC2) is a web service that provides resizable compute capacity in the cloud. Users can launch virtual servers known [&hellip;]<\/p>\n","protected":false},"author":9,"featured_media":7346,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_uag_custom_page_level_css":"","site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"set","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[5],"tags":[],"class_list":["post-3198","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux"],"uagb_featured_image_src":{"full":["https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/03\/How-to-Connect-your-EC2-Instance-using-PuTTY.png",1366,768,false],"thumbnail":["https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/03\/How-to-Connect-your-EC2-Instance-using-PuTTY-150x150.png",150,150,true],"medium":["https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/03\/How-to-Connect-your-EC2-Instance-using-PuTTY-300x169.png",300,169,true],"medium_large":["https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/03\/How-to-Connect-your-EC2-Instance-using-PuTTY-768x432.png",768,432,true],"large":["https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/03\/How-to-Connect-your-EC2-Instance-using-PuTTY-1024x576.png",1024,576,true],"1536x1536":["https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/03\/How-to-Connect-your-EC2-Instance-using-PuTTY.png",1366,768,false],"2048x2048":["https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/03\/How-to-Connect-your-EC2-Instance-using-PuTTY.png",1366,768,false]},"uagb_author_info":{"display_name":"Nayana Nair","author_link":"https:\/\/www.veeble.com\/kb\/author\/nayana\/"},"uagb_comment_info":0,"uagb_excerpt":"Amazon Elastic Compute Cloud (Amazon EC2) is a web service that provides resizable compute capacity in the cloud. Users can launch virtual servers known [&hellip;]","_links":{"self":[{"href":"https:\/\/www.veeble.com\/kb\/wp-json\/wp\/v2\/posts\/3198","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.veeble.com\/kb\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.veeble.com\/kb\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.veeble.com\/kb\/wp-json\/wp\/v2\/users\/9"}],"replies":[{"embeddable":true,"href":"https:\/\/www.veeble.com\/kb\/wp-json\/wp\/v2\/comments?post=3198"}],"version-history":[{"count":10,"href":"https:\/\/www.veeble.com\/kb\/wp-json\/wp\/v2\/posts\/3198\/revisions"}],"predecessor-version":[{"id":7769,"href":"https:\/\/www.veeble.com\/kb\/wp-json\/wp\/v2\/posts\/3198\/revisions\/7769"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.veeble.com\/kb\/wp-json\/wp\/v2\/media\/7346"}],"wp:attachment":[{"href":"https:\/\/www.veeble.com\/kb\/wp-json\/wp\/v2\/media?parent=3198"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.veeble.com\/kb\/wp-json\/wp\/v2\/categories?post=3198"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.veeble.com\/kb\/wp-json\/wp\/v2\/tags?post=3198"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}