{"id":884,"date":"2013-10-31T02:26:29","date_gmt":"2013-10-31T02:26:29","guid":{"rendered":"http:\/\/codebangers.com\/?p=884"},"modified":"2014-01-28T16:09:23","modified_gmt":"2014-01-28T16:09:23","slug":"ssh-into-your-amazon-instance-with-keypair","status":"publish","type":"post","link":"https:\/\/codebangers.com\/ssh-into-your-amazon-instance-with-keypair\/","title":{"rendered":"SSH into your Amazon instance without a KeyPair"},"content":{"rendered":"<p>1.\u00a0\u00a0SSH into your instance.<\/p>\n<p>2.\u00a0 Edit\u00a0<em><strong>\/etc\/ssh\/sshd_config<\/strong><\/em>\u00a0and set\u00a0<em><strong>PasswordAuthentication<\/strong><\/em>\u00a0to\u00a0<em><strong>yes<\/strong><\/em>.<\/p>\n<p>One way to do this is to enter the command <em><strong>nano<\/strong><strong><em>\u00a0<\/em>\/etc\/ssh\/sshd_config<\/strong><\/em>, then scroll down to<em><strong>PasswordAuthentication<\/strong><\/em>. \u00a0Change the\u00a0<em><strong>no<\/strong><\/em>\u00a0to\u00a0<em><strong>yes<\/strong><\/em>.\u00a0 Then press\u00a0<em><strong>Ctrl+X<\/strong><\/em>, and press the Y key\u00a0to save and quit.<em><strong><br \/>\n<\/strong><\/em><\/p>\n<p>3.\u00a0 Enter the command\u00a0<em><strong>\/etc\/init.d\/sshd reload<\/strong><\/em>. (for Ubuntu, enter the command<strong>\u00a0reload ssh<\/strong>)<\/p>\n<p>4.\u00a0 Set your password if you haven&#8217;t already, with the\u00a0<em><strong>passwd<\/strong><\/em>\u00a0command.<\/p>\n<p>Note: This was tested with SUSE Linux.\u00a0 Directory and file names may be slightly different depending on your flavor of Linux.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>1.\u00a0\u00a0SSH into your instance. 2.\u00a0 Edit\u00a0\/etc\/ssh\/sshd_config\u00a0and set\u00a0PasswordAuthentication\u00a0to\u00a0yes. One way to do this is to enter the command nano\u00a0\/etc\/ssh\/sshd_config, then scroll down toPasswordAuthentication. [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":769,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[118,30,15],"tags":[],"class_list":["post-884","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-cloud","category-howto","category-linux-1"],"_links":{"self":[{"href":"https:\/\/codebangers.com\/wp-json\/wp\/v2\/posts\/884","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/codebangers.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/codebangers.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/codebangers.com\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/codebangers.com\/wp-json\/wp\/v2\/comments?post=884"}],"version-history":[{"count":3,"href":"https:\/\/codebangers.com\/wp-json\/wp\/v2\/posts\/884\/revisions"}],"predecessor-version":[{"id":913,"href":"https:\/\/codebangers.com\/wp-json\/wp\/v2\/posts\/884\/revisions\/913"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/codebangers.com\/wp-json\/wp\/v2\/media\/769"}],"wp:attachment":[{"href":"https:\/\/codebangers.com\/wp-json\/wp\/v2\/media?parent=884"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/codebangers.com\/wp-json\/wp\/v2\/categories?post=884"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/codebangers.com\/wp-json\/wp\/v2\/tags?post=884"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}