{"id":118,"date":"2018-04-24T05:42:41","date_gmt":"2018-04-24T05:42:41","guid":{"rendered":"http:\/\/td_uid_69_5adec3d1b639d"},"modified":"2018-06-01T13:50:34","modified_gmt":"2018-06-01T13:50:34","slug":"how-to-change-the-ssh-port-for-your-linux-server","status":"publish","type":"post","link":"https:\/\/forumweb.hosting\/blog\/how-to-change-the-ssh-port-for-your-linux-server\/","title":{"rendered":"How to Change the SSH Port for Your Linux Server"},"content":{"rendered":"<p>The use of default SSH port information to connect to the remote server is quite sensitive. This can bring you some security risks such as hackers can use the default port to conduct your password search, use the possible bugs of the SSH server to carry out the attack. Server usage rights. So in this article I will guide you to change the default SSH port information to minimize the risk.<\/p>\n<p>First, you need to log on to your server. Type nano\/etc\/ssh\/sshd_config<\/p>\n<p><img loading=\"lazy\" class=\"alignnone size-medium wp-image-210\" src=\"https:\/\/forumweb.hosting\/blog\/wp-content\/uploads\/2018\/04\/How-to-Change-the-SSH-Port-for-Your-Linux-Server-1-300x75.png\" alt=\"\" width=\"300\" height=\"75\" srcset=\"https:\/\/forumweb.hosting\/blog\/wp-content\/uploads\/2018\/04\/How-to-Change-the-SSH-Port-for-Your-Linux-Server-1-300x75.png 300w, https:\/\/forumweb.hosting\/blog\/wp-content\/uploads\/2018\/04\/How-to-Change-the-SSH-Port-for-Your-Linux-Server-1.png 362w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/p>\n<p>Next, go to #Port 22<\/p>\n<p><img loading=\"lazy\" class=\"alignnone size-full wp-image-211\" src=\"https:\/\/forumweb.hosting\/blog\/wp-content\/uploads\/2018\/04\/How-to-Change-the-SSH-Port-for-Your-Linux-Server-2.png\" alt=\"\" width=\"229\" height=\"132\" \/><\/p>\n<p>Remove # in front of line #Port 22 and replace the number 22 by the number you want (note: the maximum is 65536).<\/p>\n<p>For example:<\/p>\n<p><img loading=\"lazy\" class=\"alignnone size-full wp-image-212\" src=\"https:\/\/forumweb.hosting\/blog\/wp-content\/uploads\/2018\/04\/How-to-Change-the-SSH-Port-for-Your-Linux-Server-3.png\" alt=\"\" width=\"283\" height=\"128\" \/><\/p>\n<p>Save the file and type the service command sshd restart<\/p>\n<p><img loading=\"lazy\" class=\"alignnone size-medium wp-image-213\" src=\"https:\/\/forumweb.hosting\/blog\/wp-content\/uploads\/2018\/04\/How-to-Change-the-SSH-Port-for-Your-Linux-Server-4-300x59.png\" alt=\"\" width=\"300\" height=\"59\" srcset=\"https:\/\/forumweb.hosting\/blog\/wp-content\/uploads\/2018\/04\/How-to-Change-the-SSH-Port-for-Your-Linux-Server-4-300x59.png 300w, https:\/\/forumweb.hosting\/blog\/wp-content\/uploads\/2018\/04\/How-to-Change-the-SSH-Port-for-Your-Linux-Server-4.png 392w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/p>\n<p>From now on you can use SSH through the new port.<\/p>\n<p>Good luck!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The use of default SSH port information to connect to the remote server is quite sensitive. This can bring you some security risks such as hackers can use the default port to conduct your password search, use the possible bugs of the SSH server to carry out the attack. Server usage rights. So in this [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":214,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[13],"tags":[59,70],"_links":{"self":[{"href":"https:\/\/forumweb.hosting\/blog\/wp-json\/wp\/v2\/posts\/118"}],"collection":[{"href":"https:\/\/forumweb.hosting\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/forumweb.hosting\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/forumweb.hosting\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/forumweb.hosting\/blog\/wp-json\/wp\/v2\/comments?post=118"}],"version-history":[{"count":2,"href":"https:\/\/forumweb.hosting\/blog\/wp-json\/wp\/v2\/posts\/118\/revisions"}],"predecessor-version":[{"id":560,"href":"https:\/\/forumweb.hosting\/blog\/wp-json\/wp\/v2\/posts\/118\/revisions\/560"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/forumweb.hosting\/blog\/wp-json\/wp\/v2\/media\/214"}],"wp:attachment":[{"href":"https:\/\/forumweb.hosting\/blog\/wp-json\/wp\/v2\/media?parent=118"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/forumweb.hosting\/blog\/wp-json\/wp\/v2\/categories?post=118"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/forumweb.hosting\/blog\/wp-json\/wp\/v2\/tags?post=118"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}