{"id":335,"date":"2017-07-26T03:17:28","date_gmt":"2017-07-26T03:17:28","guid":{"rendered":"http:\/\/hyderabadwebhosting.in\/blog\/?p=335"},"modified":"2017-10-13T21:40:11","modified_gmt":"2017-10-13T21:40:11","slug":"ssh-port-number","status":"publish","type":"post","link":"https:\/\/hyderabadwebhosting.in\/blog\/ssh-port-number\/","title":{"rendered":"How to change the default SSH Port number on Linux server"},"content":{"rendered":"<p><span style=\"font-size: large;\">Secure shell(SSH) default port number is 22.This default port number leads to huge automated DDoS attack on the server.By changing the deault SSH port number will helps to stop many automated DDoS attack because it&#8217;s bit harder to get the port number<\/span><\/p>\n<p><span style=\"font-size: large;\">Here we are going to discussed about changing the default port number on Linux system.<\/span><\/p>\n<p><span style=\"font-size: large;\">Login to your server via SSH as a root user<\/span><\/p>\n<p><span style=\"font-size: large;\">To change SSH port number you need to find configuration file.Configuration file of SSH is sshd_config and the location of this file \/etc\/ssh.<\/span><\/p>\n<p><span style=\"font-size: large;\">Using below command to edit the configuration file<\/span><\/p>\n<p><span style=\"font-size: large;\">nano \/etc\/sshd\/sshd_config<\/span><\/p>\n<p><a href=\"http:\/\/hyderabadwebhosting.in\/blog\/wp-content\/uploads\/2017\/07\/2-1-1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-336 size-full\" src=\"http:\/\/hyderabadwebhosting.in\/blog\/wp-content\/uploads\/2017\/07\/2-1-1.png\" alt=\"\" width=\"644\" height=\"153\" srcset=\"https:\/\/hyderabadwebhosting.in\/blog\/wp-content\/uploads\/2017\/07\/2-1-1.png 644w, https:\/\/hyderabadwebhosting.in\/blog\/wp-content\/uploads\/2017\/07\/2-1-1-300x71.png 300w\" sizes=\"auto, (max-width: 644px) 100vw, 644px\" \/><\/a><\/p>\n<p><span style=\"font-size: large;\">To find this line #22 on configuration file and replace the port number as per your wish and save it.<\/span><\/p>\n<p><span style=\"font-size: large;\">*Before proceeding this make sure the mentioned port number is opened on your server<\/span><\/p>\n<p><a href=\"http:\/\/hyderabadwebhosting.in\/blog\/wp-content\/uploads\/2017\/07\/2-2-1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-337 size-full\" src=\"http:\/\/hyderabadwebhosting.in\/blog\/wp-content\/uploads\/2017\/07\/2-2-1.png\" alt=\"\" width=\"641\" height=\"280\" srcset=\"https:\/\/hyderabadwebhosting.in\/blog\/wp-content\/uploads\/2017\/07\/2-2-1.png 641w, https:\/\/hyderabadwebhosting.in\/blog\/wp-content\/uploads\/2017\/07\/2-2-1-300x131.png 300w\" sizes=\"auto, (max-width: 641px) 100vw, 641px\" \/><\/a><\/p>\n<p><span style=\"font-size: large;\">After that,you will restart SSH service by using the below command<\/span><\/p>\n<p><span style=\"font-size: large;\">systemctl restart sshd.service<\/span><\/p>\n<p><span style=\"font-size: large;\">Now you can able to login your server by using replaced port number.<\/span><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<div class=\"pdf24Plugin-cp\"> \t<form name=\"pdf24Form0\" method=\"post\" action=\"https:\/\/doc2pdf.pdf24.org\/wordpress.php\" target=\"pdf24PopWin\" onsubmit=\"var pdf24Win = window.open('about:blank', 'pdf24PopWin', 'resizable=yes,scrollbars=yes,width=600,height=250,left='+(screen.width\/2-300)+',top='+(screen.height\/3-125)+''); pdf24Win.focus(); if(typeof pdf24OnCreatePDF === 'function'){void(pdf24OnCreatePDF(this,pdf24Win));}\"> \t\t<input type=\"hidden\" name=\"blogCharset\" value=\"Cw1x07UAAA==\" \/><input type=\"hidden\" name=\"blogPosts\" value=\"MwQA\" \/><input type=\"hidden\" name=\"blogUrl\" value=\"yygpKSi20tfPqExJLUpMSkwpT03KyC8uycxL18vM00\/KyU8HAA==\" \/><input type=\"hidden\" name=\"blogName\" value=\"86hMSS1KTEpMUQhPTVLwyC8uycxLBwA=\" \/><input type=\"hidden\" name=\"blogValueEncoding\" value=\"gzdeflate base64\" \/><input type=\"hidden\" name=\"postId_0\" value=\"MzY2BQA=\" \/><input type=\"hidden\" name=\"postTitle_0\" value=\"88gvVyjJV0jOSMxLT1UoyUhVSElNSyzNKVEIDvZQCMgvKlHIK81NSi1SyM9T8MnMK61QKE4tKkstAgA=\" \/><input type=\"hidden\" name=\"postLink_0\" value=\"BcHRDcAgCAXAiez7dxuJREwUDGCabt87yTxRAfk6e6PWXyaxyKnjmQpaNhAh5Zhn0buJHT8=\" \/><input type=\"hidden\" name=\"postAuthor_0\" value=\"c\/QLDVAICHJ08XD0AwA=\" \/><input type=\"hidden\" name=\"postDateTime_0\" value=\"MzIwNNc1MNc1MlMwMLYyMLcysgAA\" \/><input type=\"hidden\" name=\"postContent_0\" value=\"tVZNj9MwEL3zK0ZBQoA2TZMCRbttJT4OHBCXhTOaOJPEwrGt2Nlu+PWMnWXZbXcFkcopjWPPe\/M8b6Ybu9s4ixqcHxVtk9ponzr5k85BYd\/QRbK7JDH0BK4lpZ5fXn56ARXVOCgP1vQe9NCV1IN0UBSLry0\/H\/qsCCsH3kA7NAQ4eNOhpwo+fjSXgN6j+AFGg28ZiPor6hfvRxAt6kbqJi5XFIMygXuB91IpYGo2RnfeWOhQj49AlCRwcATSP3v6tsjXFw5K6aHFvuJYHKAhH9HuQGyyINBuk9ndk83f5fpELNaec+RHYyJ7A5V0YnCO2WBpBn+Y2bFerMVnqYdrcKPz1C1mkvhsOHoAHs3Q3ygKVxKjfOgAoTfGA0sxN72vZiJPRzfBUKCJU2TYWuoKhNG1bIYeveR0aqlo8eFoCUwdI3HdONdW36dDgHw+aKOMmPbyNh+KK57JyIuMt8+V5ZsLmpekzJ7ZdV1EMUCVnG79mPFMAI3a3LKrsjsZHQZCaHuqt0nrvT3PsnbkAsQSqz2VrXGeeS6kzkplmmxvU47hSftssMqwkbJima+z5Tor0jzNF1Y3yW4juwbCVz66TRT+HBOuLGGmd3SjFgkIhc7xm5KNFhwwGMimssOG0tXqDYRs0npQKgHXi9OxA1R+myTs1sq32+TNq1cJm1Y2La\/mr1cRzZGfAN0JEIEh9mdwinDparm8Xk9R+ec+iSoFFbnFnMHzDq\/TmNd5ALXXLyBfLq8YPL4lkPGl4xx\/RfPEYldSEzwtitAOjmszmqQnq1DQYdMKJreTKUOPdG3c7PAq9L65tnn5nmrD7cz2RrDBp77F9Dr8we06DIeA3rGCTI0bwMFcMJbCKrO+043+lx+KE\/phfXI\/FI\/5If\/jh+Lt8oR+KG79kJ\/CD8WNH\/LVPxoiv2eIfL4h3tXhVnyL\/ixMmDjve3Ie++nPQCgnyQYoRx5nv0fqvRY\/s9qniSv8H5jQxhc3ODODfWEagbbgXViyZ3ncqDic707mW+43br5noUO3PtOlsxcPvP0C\" \/> \t\t<a href=\"https:\/\/www.pdf24.org\" target=\"_blank\" title=\"www.pdf24.org\"><img src=\"https:\/\/hyderabadwebhosting.in\/blog\/wp-content\/plugins\/pdf24-post-to-pdf\/img\/sheep_32x32.png\" alt=\"www.pdf24.org\" border=\"0\" height=\"32\" \/><\/a> \t\t<span class=\"pdf24Plugin-cp-space\">&nbsp;&nbsp;<\/span> \t\t<span class=\"pdf24Plugin-cp-text\">Send article as PDF<\/span> \t\t<span class=\"pdf24Plugin-cp-space\">&nbsp;&nbsp;<\/span> \t\t<input class=\"pdf24Plugin-cp-input\" style=\"margin: 0px;\" type=\"text\" name=\"sendEmailTo\" placeholder=\"Enter email address\" \/> \t\t<input class=\"pdf24Plugin-cp-submit\" style=\"margin: 0px;\" type=\"submit\" value=\"Send\" \/> \t<\/form> <\/div>","protected":false},"excerpt":{"rendered":"<p>Secure shell(SSH) default port number is 22.This default port number leads to huge automated DDoS attack on the server.By changing the deault SSH port number will helps to stop many automated DDoS attack because it&#8217;s bit harder to get the port number Here we are going to discussed about changing the default port number on\u2026 <span class=\"read-more\"><a href=\"https:\/\/hyderabadwebhosting.in\/blog\/ssh-port-number\/\">Read More &raquo;<\/a><\/span><\/p>\n","protected":false},"author":1,"featured_media":346,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_eb_attr":"","footnotes":""},"categories":[6],"tags":[],"class_list":["post-335","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-vps"],"_links":{"self":[{"href":"https:\/\/hyderabadwebhosting.in\/blog\/wp-json\/wp\/v2\/posts\/335","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hyderabadwebhosting.in\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hyderabadwebhosting.in\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hyderabadwebhosting.in\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/hyderabadwebhosting.in\/blog\/wp-json\/wp\/v2\/comments?post=335"}],"version-history":[{"count":3,"href":"https:\/\/hyderabadwebhosting.in\/blog\/wp-json\/wp\/v2\/posts\/335\/revisions"}],"predecessor-version":[{"id":340,"href":"https:\/\/hyderabadwebhosting.in\/blog\/wp-json\/wp\/v2\/posts\/335\/revisions\/340"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/hyderabadwebhosting.in\/blog\/wp-json\/wp\/v2\/media\/346"}],"wp:attachment":[{"href":"https:\/\/hyderabadwebhosting.in\/blog\/wp-json\/wp\/v2\/media?parent=335"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hyderabadwebhosting.in\/blog\/wp-json\/wp\/v2\/categories?post=335"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hyderabadwebhosting.in\/blog\/wp-json\/wp\/v2\/tags?post=335"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}