{"id":155,"date":"2016-04-26T14:36:09","date_gmt":"2016-04-26T14:36:09","guid":{"rendered":"http:\/\/devsec.smham2.org\/?p=155"},"modified":"2016-04-26T14:36:09","modified_gmt":"2016-04-26T14:36:09","slug":"improve-system-performance-redirect-ssh-port","status":"publish","type":"post","link":"https:\/\/devsec.smham2.org\/?p=155","title":{"rendered":"Improve System Performance, Redirect SSH Port"},"content":{"rendered":"<p>I have a Mac Mini that has an open port to the Internet.\u00a0 This machine was also my internal media server.\u00a0 But over time, I notice that the performance of the Mac was dropping.\u00a0 One of the CPU threads was always running at 100%.\u00a0 Eventually after some investigation, I found the problem.\u00a0 This Mac had port 22 open through the router for external access.\u00a0 Well, port 22 is frequently probed for weaknesses including weak passwords and vulnerabilities.\u00a0 These frequent probes affect the SSH daemon and will affect the CPU and memory of the system.<\/p>\n<p>Want to improve your external facing system&#8217;s performance, either change the default SSH port from 22 to another non-standard (&gt;1024) port or have port forwarding setup to direct a non-standard external port to your internal SSH port.<\/p>\n<p>The moment I did this, the probes stopped and CPU utilization dropped to near 0.\u00a0 This tip will work for hosted virtual machines and cloud instances that have SSH open to the world.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I have a Mac Mini that has an open port to the Internet.\u00a0 This machine was also my internal media server.\u00a0 But over time, I notice that the performance of the Mac was dropping.\u00a0 One of the CPU threads was always running at 100%.\u00a0 Eventually after some investigation, I found the problem.\u00a0 This Mac had [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[],"class_list":["post-155","post","type-post","status-publish","format-standard","hentry","category-quick-tip"],"_links":{"self":[{"href":"https:\/\/devsec.smham2.org\/index.php?rest_route=\/wp\/v2\/posts\/155","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devsec.smham2.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devsec.smham2.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devsec.smham2.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/devsec.smham2.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=155"}],"version-history":[{"count":1,"href":"https:\/\/devsec.smham2.org\/index.php?rest_route=\/wp\/v2\/posts\/155\/revisions"}],"predecessor-version":[{"id":156,"href":"https:\/\/devsec.smham2.org\/index.php?rest_route=\/wp\/v2\/posts\/155\/revisions\/156"}],"wp:attachment":[{"href":"https:\/\/devsec.smham2.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=155"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devsec.smham2.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=155"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devsec.smham2.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=155"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}