{"id":2166,"date":"2017-05-23T21:47:15","date_gmt":"2017-05-23T21:47:15","guid":{"rendered":"http:\/\/microsoftgeek.com\/?p=2166"},"modified":"2018-01-18T06:30:02","modified_gmt":"2018-01-18T06:30:02","slug":"how-to-install-ec2-linux-server-in-aws","status":"publish","type":"post","link":"https:\/\/microsoftgeek.com\/?p=2166","title":{"rendered":"How to install EC2 Linux server in AWS"},"content":{"rendered":"<p>We will be using AWS to install Linux server which we can use for practice\/ hand-on experience at home. One of the other alternative is to install Vmware on your desktop\/laptop and then install Linux in its virtual machine. But this way requires a good hardware configuration of your laptop\/desktop. Hosting your Linux on cloud is much easy and its not costing you anything for low usage!<\/p>\n<p>AWS offers below list of distros to install on its EC2 (server computing module) platform.<\/p>\n<ul>\n<li>Redhat<\/li>\n<li>Cent OS<\/li>\n<li>Debian<\/li>\n<li>Fedora<\/li>\n<li>Gentoo<\/li>\n<li>OpenSuse<\/li>\n<li>Suse Linux<\/li>\n<li>Ubuntu<\/li>\n<li>Amazon Linux<\/li>\n<\/ul>\n<p>You can have hand on to all these distros within minutes after signing up your account! \u00a0Off course you will be having root administrator access on these systems! Lets walk through steps to get your Linux server ready in minutes on AWS.<\/p>\n<hr \/>\n<p><em>Step 1.<\/em><\/p>\n<p>Login to AWS account and from landing page select \u201cLaunch a virtual machine\u201d under \u2018Build a solution\u2019 screen.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-1303\" src=\"https:\/\/c4.kerneltalks.com\/wp-content\/uploads\/2017\/02\/AWS-launch-virtual-machine.png\" sizes=\"auto, (max-width: 873px) 100vw, 873px\" srcset=\"https:\/\/c4.kerneltalks.com\/wp-content\/uploads\/2017\/02\/AWS-launch-virtual-machine.png 873w, https:\/\/c3.kerneltalks.com\/wp-content\/uploads\/2017\/02\/AWS-launch-virtual-machine-300x193.png 300w, https:\/\/c1.kerneltalks.com\/wp-content\/uploads\/2017\/02\/AWS-launch-virtual-machine-768x494.png 768w\" alt=\"AWS launch virtual machine\" width=\"873\" height=\"562\" \/><\/p>\n<hr \/>\n<p><em>Step 2.<\/em><\/p>\n<p>You will be presented with \u2018Quick Launch EC2 Instance\u2019 screen. Here you will be able to launch wizard to get your task done fast or you can go through Advanced selections to decide your final virtual server config. We will be going with normal wizard. Click \u201cGet Started\u201d button here.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-1304\" src=\"https:\/\/c4.kerneltalks.com\/wp-content\/uploads\/2017\/02\/AWS-launch-virtual-machine-wizard.png\" sizes=\"auto, (max-width: 653px) 100vw, 653px\" srcset=\"https:\/\/c4.kerneltalks.com\/wp-content\/uploads\/2017\/02\/AWS-launch-virtual-machine-wizard.png 653w, https:\/\/c1.kerneltalks.com\/wp-content\/uploads\/2017\/02\/AWS-launch-virtual-machine-wizard-300x155.png 300w\" alt=\"AWS launch virtual machine wizard\" width=\"653\" height=\"338\" \/><\/p>\n<hr \/>\n<p><em>Step 3.<\/em><\/p>\n<p>Now we will walk through wizard for creating our Linux virtual server.<\/p>\n<p><strong>Name your EC2 instance :<\/strong><\/p>\n<p>Your EC2 linux virtual server name of your choice.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-1305\" src=\"https:\/\/c4.kerneltalks.com\/wp-content\/uploads\/2017\/02\/AWS-launch-virtual-machine-wizard-screen.png\" sizes=\"auto, (max-width: 954px) 100vw, 954px\" srcset=\"https:\/\/c4.kerneltalks.com\/wp-content\/uploads\/2017\/02\/AWS-launch-virtual-machine-wizard-screen.png 954w, https:\/\/c4.kerneltalks.com\/wp-content\/uploads\/2017\/02\/AWS-launch-virtual-machine-wizard-screen-300x108.png 300w, https:\/\/c4.kerneltalks.com\/wp-content\/uploads\/2017\/02\/AWS-launch-virtual-machine-wizard-screen-768x278.png 768w\" alt=\"AWS launch virtual machine wizard screen\" width=\"954\" height=\"345\" \/><\/p>\n<p><strong>Select your operating system.<\/strong>\u00a0We are selecting RedHat here.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-1306\" src=\"https:\/\/c4.kerneltalks.com\/wp-content\/uploads\/2017\/02\/AWS-launch-virtual-machine-wizard-OS-selection.png\" sizes=\"auto, (max-width: 728px) 100vw, 728px\" srcset=\"https:\/\/c4.kerneltalks.com\/wp-content\/uploads\/2017\/02\/AWS-launch-virtual-machine-wizard-OS-selection.png 728w, https:\/\/c4.kerneltalks.com\/wp-content\/uploads\/2017\/02\/AWS-launch-virtual-machine-wizard-OS-selection-300x180.png 300w\" alt=\"AWS launch virtual machine wizard OS selection\" width=\"728\" height=\"436\" \/><\/p>\n<p><strong>Select an instance type.<\/strong><\/p>\n<p>This is type of hardware config you will be needing. For free account, you will be able to select those instances only which is tagged with \u201cFree tier eligible\u201d. Here we are selecting default t2.micro instance which has Single core CPU, 1 GB RAM and 8GB of HDD.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-1307\" src=\"https:\/\/c2.kerneltalks.com\/wp-content\/uploads\/2017\/02\/AWS-launch-virtual-machine-wizard-instance-selection.png\" sizes=\"auto, (max-width: 726px) 100vw, 726px\" srcset=\"https:\/\/c2.kerneltalks.com\/wp-content\/uploads\/2017\/02\/AWS-launch-virtual-machine-wizard-instance-selection.png 726w, https:\/\/c2.kerneltalks.com\/wp-content\/uploads\/2017\/02\/AWS-launch-virtual-machine-wizard-instance-selection-300x180.png 300w\" alt=\"AWS launch virtual machine wizard instance selection\" width=\"726\" height=\"436\" \/><\/p>\n<p><strong>Create a key pair.<\/strong><\/p>\n<p>This is important screen. Here you will be given one Private key to download. You will require this key to authenticate yourself while logging into this EC2 linux server when ready. Give name of your choice and download the key file and keep it safe.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-1308\" src=\"https:\/\/c1.kerneltalks.com\/wp-content\/uploads\/2017\/02\/AWS-launch-virtual-machine-wizard-private-key-download.png\" sizes=\"auto, (max-width: 725px) 100vw, 725px\" srcset=\"https:\/\/c1.kerneltalks.com\/wp-content\/uploads\/2017\/02\/AWS-launch-virtual-machine-wizard-private-key-download.png 725w, https:\/\/c4.kerneltalks.com\/wp-content\/uploads\/2017\/02\/AWS-launch-virtual-machine-wizard-private-key-download-300x124.png 300w\" alt=\"AWS launch virtual machine wizard private key download\" width=\"725\" height=\"299\" \/><\/p>\n<p><strong>Create this instance.<\/strong><\/p>\n<p>Finally hit create button and your server will be ready in 2 minutes. You will see installing screen.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-1309\" src=\"https:\/\/c2.kerneltalks.com\/wp-content\/uploads\/2017\/02\/AWS-launch-virtual-machine-wizard-installing.png\" sizes=\"auto, (max-width: 939px) 100vw, 939px\" srcset=\"https:\/\/c2.kerneltalks.com\/wp-content\/uploads\/2017\/02\/AWS-launch-virtual-machine-wizard-installing.png 939w, https:\/\/c1.kerneltalks.com\/wp-content\/uploads\/2017\/02\/AWS-launch-virtual-machine-wizard-installing-300x84.png 300w, https:\/\/c4.kerneltalks.com\/wp-content\/uploads\/2017\/02\/AWS-launch-virtual-machine-wizard-installing-768x216.png 768w\" alt=\"AWS launch virtual machine wizard installing\" width=\"939\" height=\"264\" \/><\/p>\n<p>Once complete, click EC2 console link and you will be presented with list of servers under your account.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-1310\" src=\"https:\/\/c4.kerneltalks.com\/wp-content\/uploads\/2017\/02\/AWS-launch-virtual-machine-wizard-finish.png\" sizes=\"auto, (max-width: 862px) 100vw, 862px\" srcset=\"https:\/\/c4.kerneltalks.com\/wp-content\/uploads\/2017\/02\/AWS-launch-virtual-machine-wizard-finish.png 862w, https:\/\/c4.kerneltalks.com\/wp-content\/uploads\/2017\/02\/AWS-launch-virtual-machine-wizard-finish-300x90.png 300w, https:\/\/c4.kerneltalks.com\/wp-content\/uploads\/2017\/02\/AWS-launch-virtual-machine-wizard-finish-768x230.png 768w\" alt=\"AWS launch virtual machine wizard finish\" width=\"862\" height=\"258\" \/><\/p>\n<hr \/>\n<p><em>Step 4.<\/em><\/p>\n<p>You can see below EC2 screen with your server details like instance state, zone, DNS etc.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-1311\" src=\"https:\/\/c4.kerneltalks.com\/wp-content\/uploads\/2017\/02\/AWS-EC2-console-screen.png\" sizes=\"auto, (max-width: 1152px) 100vw, 1152px\" srcset=\"https:\/\/c4.kerneltalks.com\/wp-content\/uploads\/2017\/02\/AWS-EC2-console-screen.png 1152w, https:\/\/c2.kerneltalks.com\/wp-content\/uploads\/2017\/02\/AWS-EC2-console-screen-300x146.png 300w, https:\/\/c4.kerneltalks.com\/wp-content\/uploads\/2017\/02\/AWS-EC2-console-screen-768x374.png 768w, https:\/\/c3.kerneltalks.com\/wp-content\/uploads\/2017\/02\/AWS-EC2-console-screen-1024x499.png 1024w\" alt=\"AWS EC2 console screen\" width=\"1152\" height=\"561\" \/><\/p>\n<p>Now to connect to this server from your laptop\/desktop, you need to use key pair as authentication. Download putty.exe and puttygen.exe from\u00a0here.<\/p>\n<p>Open puttygen.exe and load your private key which you have downloaded from AWS console in step 2.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-1312\" src=\"https:\/\/c3.kerneltalks.com\/wp-content\/uploads\/2017\/02\/Load-private-key-in-puttygen.png\" sizes=\"auto, (max-width: 492px) 100vw, 492px\" srcset=\"https:\/\/c3.kerneltalks.com\/wp-content\/uploads\/2017\/02\/Load-private-key-in-puttygen.png 492w, https:\/\/c3.kerneltalks.com\/wp-content\/uploads\/2017\/02\/Load-private-key-in-puttygen-300x291.png 300w\" alt=\"Load private key in puttygen\" width=\"492\" height=\"478\" \/><\/p>\n<p>Once, successfully loaded you need to click \u201cSave public key\u201d button and save the key on your desktop\/laptop.<\/p>\n<p>Now open putty.exe. Set your saved key file from puttygen (in above task) as a SSH authentication. In left hand side pane, expand\u00a0<strong>SSH<\/strong>\u00a0then select\u00a0<strong>Auth<\/strong>\u00a0and on right hand side you will be able to browse your file.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-1313\" src=\"https:\/\/c2.kerneltalks.com\/wp-content\/uploads\/2017\/02\/Private-key-file-in-Putty.png\" sizes=\"auto, (max-width: 471px) 100vw, 471px\" srcset=\"https:\/\/c2.kerneltalks.com\/wp-content\/uploads\/2017\/02\/Private-key-file-in-Putty.png 471w, https:\/\/c1.kerneltalks.com\/wp-content\/uploads\/2017\/02\/Private-key-file-in-Putty-300x283.png 300w\" alt=\"Private key file in Putty\" width=\"471\" height=\"444\" \/><\/p>\n<p>Now your putty.exe is ready to connect with your AWS Linux server. Now head back to EC2 console and copy your server\u2019s public DNS.<\/p>\n<p>Use this it, in putty to connect. And you will be able to connect to server. Once prompted for username use username from below table as per your distro (official AMI). You wont be prompted for password. You authentication will be done via key pair you configured in putty settings.<\/p>\n<div id=\"supsystic-table-12_18885\" class=\"supsystic-tables-wrap \">\n<div id=\"supsystic-table-12_wrapper\" class=\"dataTables_wrapper no-footer\">\n<div class=\"dataTables_scroll\">\n<div class=\"dataTables_scrollHead\">\n<div class=\"dataTables_scrollHeadInner\">\n<table class=\"supsystic-table border hover cell-border dataTable no-footer\" data-id=\"12\" data-view-id=\"12_18885\" data-title=\"Default ssh usernames for EC2 in AWS\" data-features=\"[&quot;after_table_loaded_script&quot;]\" data-pagination-length=\"50,100,All\" data-align-by-first-table=\"\" data-lang=\"default\" data-override=\"{&quot;emptyTable&quot;:&quot;&quot;,&quot;info&quot;:&quot;&quot;,&quot;infoEmpty&quot;:&quot;&quot;,&quot;infoFiltered&quot;:&quot;&quot;,&quot;lengthMenu&quot;:&quot;&quot;,&quot;search&quot;:&quot;&quot;,&quot;zeroRecords&quot;:&quot;&quot;,&quot;file&quot;:&quot;default&quot;}\" data-auto-index=\"off\" data-searching-settings=\"{&quot;minChars&quot;:&quot;0&quot;}\" data-currency-format=\"$1,000.00\" data-percent-format=\"10.00%\" data-date-format=\"DD.MM.YYYY\" data-time-format=\"HH:mm\" data-use-comma-as-delimiter=\"\" data-head=\"\" data-head-rows-count=\"1\" data-foot=\"\" data-responsive-mode=\"2\" data-from-history=\"0\">\n<thead>\n<tr>\n<th class=\"sorting_disabled\" colspan=\"1\" rowspan=\"1\"><\/th>\n<th class=\"sorting_disabled\" colspan=\"1\" rowspan=\"1\"><\/th>\n<\/tr>\n<\/thead>\n<\/table>\n<\/div>\n<\/div>\n<div class=\"dataTables_scrollBody\">\n<table id=\"supsystic-table-12\" class=\"supsystic-table border hover cell-border dataTable no-footer\" data-id=\"12\" data-view-id=\"12_18885\" data-title=\"Default ssh usernames for EC2 in AWS\" data-features=\"[&quot;after_table_loaded_script&quot;]\" data-pagination-length=\"50,100,All\" data-align-by-first-table=\"\" data-lang=\"default\" data-override=\"{&quot;emptyTable&quot;:&quot;&quot;,&quot;info&quot;:&quot;&quot;,&quot;infoEmpty&quot;:&quot;&quot;,&quot;infoFiltered&quot;:&quot;&quot;,&quot;lengthMenu&quot;:&quot;&quot;,&quot;search&quot;:&quot;&quot;,&quot;zeroRecords&quot;:&quot;&quot;,&quot;file&quot;:&quot;default&quot;}\" data-auto-index=\"off\" data-searching-settings=\"{&quot;minChars&quot;:&quot;0&quot;}\" data-currency-format=\"$1,000.00\" data-percent-format=\"10.00%\" data-date-format=\"DD.MM.YYYY\" data-time-format=\"HH:mm\" data-use-comma-as-delimiter=\"\" data-head=\"\" data-head-rows-count=\"1\" data-foot=\"\" data-responsive-mode=\"2\" data-from-history=\"0\">\n<thead>\n<tr>\n<th class=\"sorting_disabled\" colspan=\"1\" rowspan=\"1\"><\/th>\n<th class=\"sorting_disabled\" colspan=\"1\" rowspan=\"1\"><\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr class=\"odd\">\n<td class=\"htCenter htMiddle bold\" colspan=\"2\" data-cell-id=\"A1\" data-x=\"0\" data-y=\"1\" data-cell-type=\"text\" data-original-value=\"Default ssh usernames for EC2 in AWS\" data-order=\"Default ssh usernames for EC2 in AWS\" data-colspan=\"2\" data-rowspan=\"1\">Default ssh usernames for EC2 in AWS<\/td>\n<\/tr>\n<tr class=\"even\">\n<td class=\"htCenter htMiddle bold\" data-cell-id=\"A2\" data-x=\"0\" data-y=\"2\" data-cell-type=\"text\" data-original-value=\"Linux Distro\" data-order=\"Linux Distro\">Linux Distro<\/td>\n<td class=\"bold htCenter\" data-cell-id=\"B2\" data-x=\"1\" data-y=\"2\" data-cell-type=\"text\" data-original-value=\"Username\" data-order=\"Username\">Username<\/td>\n<\/tr>\n<tr class=\"odd\">\n<td class=\"htMiddle htCenter\" data-cell-id=\"A3\" data-x=\"0\" data-y=\"3\" data-cell-type=\"text\" data-original-value=\"Ubuntu\" data-order=\"Ubuntu\">Ubuntu<\/td>\n<td class=\"htCenter\" data-cell-id=\"B3\" data-x=\"1\" data-y=\"3\" data-cell-type=\"text\" data-original-value=\"ubuntu\" data-order=\"ubuntu\">ubuntu<\/td>\n<\/tr>\n<tr class=\"even\">\n<td class=\"htMiddle htCenter\" data-cell-id=\"A4\" data-x=\"0\" data-y=\"4\" data-cell-type=\"text\" data-original-value=\"Debian\" data-order=\"Debian\">Debian<\/td>\n<td class=\"htCenter\" data-cell-id=\"B4\" data-x=\"1\" data-y=\"4\" data-cell-type=\"text\" data-original-value=\"admin\" data-order=\"admin\">admin<\/td>\n<\/tr>\n<tr class=\"odd\">\n<td class=\"htMiddle htCenter\" data-cell-id=\"A5\" data-x=\"0\" data-y=\"5\" data-cell-type=\"text\" data-original-value=\"Fedora\" data-order=\"Fedora\">Fedora<\/td>\n<td class=\"htCenter\" data-cell-id=\"B5\" data-x=\"1\" data-y=\"5\" data-cell-type=\"text\" data-original-value=\"fedora\" data-order=\"fedora\">fedora<\/td>\n<\/tr>\n<tr class=\"even\">\n<td class=\"htMiddle htCenter\" data-cell-id=\"A6\" data-x=\"0\" data-y=\"6\" data-cell-type=\"text\" data-original-value=\"Cent OS\" data-order=\"Cent OS\">Cent OS<\/td>\n<td class=\"htCenter\" data-cell-id=\"B6\" data-x=\"1\" data-y=\"6\" data-cell-type=\"text\" data-original-value=\"centos\" data-order=\"centos\">centos<\/td>\n<\/tr>\n<tr class=\"odd\">\n<td class=\"htCenter htMiddle\" data-cell-id=\"A7\" data-x=\"0\" data-y=\"7\" data-cell-type=\"text\" data-original-value=\"RHEL 6.4 &amp; later\" data-order=\"RHEL 6.4 &amp; later\">RHEL 6.4 &amp; later<\/td>\n<td class=\"htCenter htMiddle\" data-cell-id=\"B7\" data-x=\"1\" data-y=\"7\" data-cell-type=\"text\" data-original-value=\"ec2-user\" data-order=\"ec2-user\">ec2-user<\/td>\n<\/tr>\n<tr class=\"even\">\n<td class=\"htCenter htMiddle\" data-cell-id=\"A8\" data-x=\"0\" data-y=\"8\" data-cell-type=\"text\" data-original-value=\"RHEL 6.3 &amp; previous\" data-order=\"RHEL 6.3 &amp; previous\">RHEL 6.3 &amp; previous<\/td>\n<td class=\"htCenter htMiddle\" data-cell-id=\"B8\" data-x=\"1\" data-y=\"8\" data-cell-type=\"text\" data-original-value=\"root\" data-order=\"root\">root<\/td>\n<\/tr>\n<tr class=\"odd\">\n<td class=\"htCenter htMiddle\" data-cell-id=\"A9\" data-x=\"0\" data-y=\"9\" data-cell-type=\"text\" data-original-value=\"SUSE\" data-order=\"SUSE\">SUSE<\/td>\n<td class=\"htCenter htMiddle\" data-cell-id=\"B9\" data-x=\"1\" data-y=\"9\" data-cell-type=\"text\" data-original-value=\"root\" data-order=\"root\">root<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<div id=\"crayon-5a6017b4909a3462372047\" class=\"crayon-syntax crayon-theme-dark-terminal crayon-font-monaco crayon-os-pc print-yes notranslate\" data-settings=\" minimize scroll-mouseover disable-anim\">\n<div class=\"crayon-toolbar\" data-settings=\" show\">\n<div class=\"crayon-tools\">\n<div class=\"crayon-button crayon-plain-button\" title=\"Toggle Plain Code\"><\/div>\n<div class=\"crayon-button crayon-expand-button\" title=\"Expand Code\"><\/div>\n<div class=\"crayon-button crayon-copy-button\" title=\"Copy\"><\/div>\n<div class=\"crayon-button crayon-popup-button\" title=\"Open Code In New Window\"><\/div>\n<p><span class=\"crayon-language\">Shell<\/span><\/p>\n<\/div>\n<\/div>\n<div class=\"crayon-plain-wrap\"><\/div>\n<div class=\"crayon-main\">\n<table class=\"crayon-table\">\n<tbody>\n<tr class=\"crayon-row\">\n<td class=\"crayon-nums \" data-settings=\"hide\">\n<div class=\"crayon-nums-content\">\n<div class=\"crayon-num\" data-line=\"crayon-5a6017b4909a3462372047-1\">1<\/div>\n<div class=\"crayon-num crayon-striped-num\" data-line=\"crayon-5a6017b4909a3462372047-2\">2<\/div>\n<div class=\"crayon-num\" data-line=\"crayon-5a6017b4909a3462372047-3\">3<\/div>\n<div class=\"crayon-num crayon-striped-num\" data-line=\"crayon-5a6017b4909a3462372047-4\">4<\/div>\n<div class=\"crayon-num\" data-line=\"crayon-5a6017b4909a3462372047-5\">5<\/div>\n<div class=\"crayon-num crayon-striped-num\" data-line=\"crayon-5a6017b4909a3462372047-6\">6<\/div>\n<div class=\"crayon-num\" data-line=\"crayon-5a6017b4909a3462372047-7\">7<\/div>\n<\/div>\n<\/td>\n<td class=\"crayon-code\">\n<div class=\"crayon-pre\">\n<div id=\"crayon-5a6017b4909a3462372047-1\" class=\"crayon-line\"><\/div>\n<div id=\"crayon-5a6017b4909a3462372047-2\" class=\"crayon-line crayon-striped-line\"><span class=\"crayon-e\">login <\/span><span class=\"crayon-st\">as<\/span><span class=\"crayon-o\">:<\/span> <span class=\"crayon-v\">ec2<\/span><span class=\"crayon-o\">&#8211;<\/span><span class=\"crayon-e\">user<\/span><\/div>\n<div id=\"crayon-5a6017b4909a3462372047-3\" class=\"crayon-line\"><span class=\"crayon-e\">Authenticating <\/span><span class=\"crayon-e\">with <\/span><span class=\"crayon-e\">public <\/span><span class=\"crayon-i\">key<\/span> <span class=\"crayon-s\">&#8220;imported-openssh-key&#8221;<\/span><\/div>\n<div id=\"crayon-5a6017b4909a3462372047-4\" class=\"crayon-line crayon-striped-line\"><span class=\"crayon-sy\">[<\/span><span class=\"crayon-v\">ec2<\/span><span class=\"crayon-o\">&#8211;<\/span><span class=\"crayon-v\">user<\/span><span class=\"crayon-sy\">@<\/span><span class=\"crayon-v\">ip<\/span><span class=\"crayon-o\">&#8211;<\/span><span class=\"crayon-cn\">172<\/span><span class=\"crayon-o\">&#8211;<\/span><span class=\"crayon-cn\">31<\/span><span class=\"crayon-o\">&#8211;<\/span><span class=\"crayon-cn\">23<\/span><span class=\"crayon-o\">&#8211;<\/span><span class=\"crayon-cn\">115<\/span> <span class=\"crayon-o\">~<\/span><span class=\"crayon-sy\">]<\/span><span class=\"crayon-sy\">$<\/span> <span class=\"crayon-e\">sudo <\/span><span class=\"crayon-v\">su<\/span> <span class=\"crayon-o\">&#8211;<\/span><\/div>\n<div id=\"crayon-5a6017b4909a3462372047-5\" class=\"crayon-line\"><span class=\"crayon-sy\">[<\/span><span class=\"crayon-v\">root<\/span><span class=\"crayon-sy\">@<\/span><span class=\"crayon-v\">ip<\/span><span class=\"crayon-o\">&#8211;<\/span><span class=\"crayon-cn\">172<\/span><span class=\"crayon-o\">&#8211;<\/span><span class=\"crayon-cn\">31<\/span><span class=\"crayon-o\">&#8211;<\/span><span class=\"crayon-cn\">23<\/span><span class=\"crayon-o\">&#8211;<\/span><span class=\"crayon-cn\">115<\/span> <span class=\"crayon-o\">~<\/span><span class=\"crayon-sy\">]<\/span><span class=\"crayon-c\"># id<\/span><\/div>\n<div id=\"crayon-5a6017b4909a3462372047-6\" class=\"crayon-line crayon-striped-line\"><span class=\"crayon-v\">uid<\/span><span class=\"crayon-o\">=<\/span><span class=\"crayon-cn\">0<\/span><span class=\"crayon-sy\">(<\/span><span class=\"crayon-v\">root<\/span><span class=\"crayon-sy\">)<\/span> <span class=\"crayon-v\">gid<\/span><span class=\"crayon-o\">=<\/span><span class=\"crayon-cn\">0<\/span><span class=\"crayon-sy\">(<\/span><span class=\"crayon-v\">root<\/span><span class=\"crayon-sy\">)<\/span> <span class=\"crayon-v\">groups<\/span><span class=\"crayon-o\">=<\/span><span class=\"crayon-cn\">0<\/span><span class=\"crayon-sy\">(<\/span><span class=\"crayon-v\">root<\/span><span class=\"crayon-sy\">)<\/span> <span class=\"crayon-v\">context<\/span><span class=\"crayon-o\">=<\/span><span class=\"crayon-v\">unconfined_u<\/span><span class=\"crayon-o\">:<\/span><span class=\"crayon-v\">unconfined_r<\/span><span class=\"crayon-o\">:<\/span><span class=\"crayon-v\">unconfined_t<\/span><span class=\"crayon-o\">:<\/span><span class=\"crayon-v\">s0<\/span><span class=\"crayon-o\">&#8211;<\/span><span class=\"crayon-v\">s0<\/span><span class=\"crayon-o\">:<\/span><span class=\"crayon-v\">c0<\/span><span class=\"crayon-e\">.c1023<\/span><\/div>\n<div id=\"crayon-5a6017b4909a3462372047-7\" class=\"crayon-line\"><\/div>\n<\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<p>Once logged in, use\u00a0<em>sudo su \u2013<\/em>\u00a0command and you will be in root account! Thats it, you have EC2 Linux server with root account in few minutes!<\/p>\n<hr \/>\n<p>You can install any distro listed above in these instances. Make sure you are not expiring your free usage according to AWS free tier policy otherwise you will be billed on your card.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>We will be using AWS to install Linux server which we can use for practice\/ hand-on experience at home. One of the other alternative is to install Vmware on your desktop\/laptop and then install Linux in its virtual machine. But this way requires a good hardware configuration of your laptop\/desktop. Hosting your Linux on cloud [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[64],"tags":[],"class_list":["post-2166","post","type-post","status-publish","format-standard","hentry","category-awsamazon-web-services-amazon"],"_links":{"self":[{"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=\/wp\/v2\/posts\/2166","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2166"}],"version-history":[{"count":4,"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=\/wp\/v2\/posts\/2166\/revisions"}],"predecessor-version":[{"id":2448,"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=\/wp\/v2\/posts\/2166\/revisions\/2448"}],"wp:attachment":[{"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2166"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2166"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2166"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}