<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Sushank karki on Medium]]></title>
        <description><![CDATA[Stories by Sushank karki on Medium]]></description>
        <link>https://medium.com/@sushankkarki21?source=rss-e2739dc71a81------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*bfuUwaLKLWkmAqDj</url>
            <title>Stories by Sushank karki on Medium</title>
            <link>https://medium.com/@sushankkarki21?source=rss-e2739dc71a81------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 14:34:34 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@sushankkarki21/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Create a EC2 instance, updating the Port, Getting in the instance]]></title>
            <link>https://medium.com/@sushankkarki21/create-a-ec2-instance-updating-the-port-getting-in-the-instance-ec66dcec86ea?source=rss-e2739dc71a81------2</link>
            <guid isPermaLink="false">https://medium.com/p/ec66dcec86ea</guid>
            <category><![CDATA[terminal]]></category>
            <category><![CDATA[http-client]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[ec2]]></category>
            <category><![CDATA[instance]]></category>
            <dc:creator><![CDATA[Sushank karki]]></dc:creator>
            <pubDate>Fri, 28 Feb 2025 06:06:45 GMT</pubDate>
            <atom:updated>2025-02-28T12:46:31.557Z</atom:updated>
            <content:encoded><![CDATA[<h3>Creating an EC2 instance, updating the Port, Getting in the instance</h3><p><strong>Introduction of AWS</strong></p><p>Amazon Web Services (AWS) is a comprehensive and widely adopted cloud platform offering a range of cloud computing services, including computing power, storage, databases, machine learning, analytics, and networking. It enables businesses and developers to host applications, store data, and scale their resources with high flexibility and cost-efficiency. AWS provides a pay-as-you-go pricing model, making it accessible to startups, enterprises, and government organizations alike.</p><p><strong>AWS EC2</strong></p><p>Amazon EC2 (Elastic Compute Cloud) is a web service provided by AWS that allows users to rent virtual servers, known as instances, to run applications and workloads in the cloud. EC2 provides scalable computing capacity, allowing businesses to quickly scale up or down based on demand. It supports various operating systems, instance types, and configurations, making it suitable for a wide range of applications from small websites to large enterprise systems.</p><p><strong><em>Step-by-Step procedure</em></strong></p><blockquote>1.​ On the top left side of search EC2, click on it.<br>2.​ Click on Launch Instance.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GQyjgPdCKjyV9yLXBSMkOw.png" /></figure><blockquote>3.​ Create the instance with the default config.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Aif7aom5zdSRUe8yosOMzQ.png" /></figure><blockquote>4.​ Download the key .pem file and click on the .pem file you downloaded recently.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YivihDB9krBHl9e6xrvVXg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rjRNA8igSGvylZ8XonRI3g.png" /></figure><blockquote>5.​ Click Launch Instance.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*y1vxnzBt5zozVeyb7UoI_w.png" /></figure><blockquote>After creating the instance, there you can see the Public <strong>IPv4</strong> address. If<br>you Click on it you will see an error in the website.​<br>​This is because your port:80 is not open.​ So, Now scroll down and click on the security.​<br>​There you can see ports that are open.</blockquote><p><strong>Port</strong></p><p>A“port” refers to a communication endpoint used for network traffic to and from instances or services. Each port is associated with a specific protocol (like HTTP on port 80 or HTTPS on port 443) and is used to manage access to resources such as EC2 instances, load balancers, or databases. In AWS, security groups and network access control lists (ACLs) are used to control and filter traffic based on ports, helping secure network interactions within cloud environments.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CyzURTbzEDGoF7m4eXtpew.png" /></figure><blockquote>6. Now, click on the link shown below the security groups.<br>7. Then you will come to a page where you can edit Inbound rules and<br>Outbound rules.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pyMYQORhQJhSgMKurVT7Lw.png" /></figure><blockquote>8. Open the HTTP port:80 and click on 0.0.0.0/0 so that any one can open from<br>anywhere. If you just wanna open from your IP then select Custom and put<br>your IP and click on Save rules.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Kf4oT97MPDpFC229GjGJ-w.png" /></figure><blockquote>Now, the question left is how to get inside the server.</blockquote><p><strong>Instance</strong></p><p><strong>An instance</strong> in AWS refers to a virtual server created using the EC2 (Elastic Compute Cloud) service. It provides computing resources such as CPU, memory, storage, and networking, which can be used to run applications, websites, or databases. Instances can be configured with various operating systems and instance types to meet specific performance and workload needs. They are scalable, allowing users to adjust capacity based on demand.</p><blockquote>So, now Go to the Terminal.​<br>Now here you will change your directory to the folder where your .pem file was downloaded.​</blockquote><p>For my case:</p><blockquote>9. Let’s change directory to where our .pem file downloaded recently</blockquote><pre>cd Downloads</pre><blockquote>10 . Then we do</blockquote><pre>chmod 400 &lt;key name&gt;.pem</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7r0AV7yBEN2ArvSQLffIUA.png" /></figure><blockquote>11. Now</blockquote><pre>ssh -i &lt;key name&gt;.pem user@our_instance_public_ip</pre><p><em>Now you have entered the server. <br>Here you can upload or update the website.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ec66dcec86ea" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>