{"id":72,"date":"2018-11-19T14:07:31","date_gmt":"2018-11-19T14:07:31","guid":{"rendered":"http:\/\/tamer-az.com\/?p=72"},"modified":"2018-11-19T14:07:31","modified_gmt":"2018-11-19T14:07:31","slug":"changing-the-ssh-port-for-your-linux-server","status":"publish","type":"post","link":"https:\/\/tamer-az.com\/?p=72","title":{"rendered":"Changing the SSH Port for Your Linux Server"},"content":{"rendered":"\n<h4 class=\"wp-block-heading\">To Change the SSH Port for Your Linux Server<\/h4>\n\n\n\n<ol class=\"wp-block-list\"><li>Connect to your server via SSH <br><\/li><li>Switch to the root user <\/li><li>Run the following command:vi \/etc\/ssh\/sshd_config<\/li><li>Locate the following line:# Port 22<\/li><li>Remove <strong>#<\/strong> and change <strong>22<\/strong> to your desired port number.<\/li><li>Restart the <strong>sshd<\/strong> service by running the following command:service sshd restart<\/li><\/ol>\n","protected":false},"excerpt":{"rendered":"<p>To Change the SSH Port for Your Linux Server Connect to your server via SSH Switch to the root user Run the following command:vi \/etc\/ssh\/sshd_config Locate the following line:# Port 22 Remove # and change 22 to your desired port number. Restart the sshd service by running the following command:service sshd restart<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-72","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/tamer-az.com\/index.php?rest_route=\/wp\/v2\/posts\/72","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tamer-az.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tamer-az.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tamer-az.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/tamer-az.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=72"}],"version-history":[{"count":1,"href":"https:\/\/tamer-az.com\/index.php?rest_route=\/wp\/v2\/posts\/72\/revisions"}],"predecessor-version":[{"id":73,"href":"https:\/\/tamer-az.com\/index.php?rest_route=\/wp\/v2\/posts\/72\/revisions\/73"}],"wp:attachment":[{"href":"https:\/\/tamer-az.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=72"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tamer-az.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=72"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tamer-az.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=72"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}