<br>
<b>Warning</b>:  Undefined array key "HTTP_REFERER" in <b>/home/webhostingchenna/domains/webhostingchennai.co.in/public_html/blog/wp-content/plugins/wp-linkbuilder/plugin/plugin_class.inc.php</b> on line <b>637</b><br>
{"id":273,"date":"2017-07-01T16:48:09","date_gmt":"2017-07-01T11:18:09","guid":{"rendered":"http:\/\/www.webhostingchennai.co.in\/blog\/?p=273"},"modified":"2019-04-04T16:49:12","modified_gmt":"2019-04-04T11:19:12","slug":"5-simple-steps-to-change-ssh-port","status":"publish","type":"post","link":"https:\/\/www.webhostingchennai.co.in\/blog\/5-simple-steps-to-change-ssh-port\/","title":{"rendered":"5 Simple steps to change SSH port in Centos"},"content":{"rendered":"<h4><span style=""><strong>This article will show you, The 5 Simple steps to change SSH port in Centos.<\/strong><\/span><\/h4>\n<p>Before I go any further, let\u2019s see why this port has to be changed ?<\/p>\n</p><p>Security should always be applied in layers. This provides multiple levels of <a href="">protection<\/a> from initial attacks, like information gathering attempts\u00a0or casual threats.\u00a0In addition, this layer of security should be applied within the environment so that breaking into one server after getting a pivot point in the environment should be just as difficult (if not more difficult) than the original attack that created the pivot point.<\/p>\n<p>Let\u2019s get back to the original purpose of the post.<\/p>\n</p><p><strong>Step 1 :<\/strong> Login your SSH as root user.<\/p>\n<p><strong>Step 2 :<\/strong> Use the below command to modify the sshd configuration file.<\/p>\n<pre>nano \/etc\/ssh\/sshd_config<\/pre>\n<pre>#Port 22\r\n#AddressFamily any\r\n#ListenAddress 0.0.0.0\r\n#ListenAddress ::<\/pre>\n<p><strong>Step 3 :<\/strong> Navigate to &#8220;#Port 22&#8221;.<\/p>\n<p><strong>Step 4 :<\/strong> Remove the # to uncomment and modify the port number from 22 to your own port number as show below and save the configuration file.<\/p>\n<pre>Port 4325\r\n#AddressFamily any\r\n#ListenAddress 0.0.0.0\r\n#ListenAddress ::<\/pre>\n<p><strong>Step 5 :<\/strong> Now, Restart the SSH server, using the below command.<\/p>\n<pre>\/etc\/init.d\/sshd restart<\/pre>\n<p>Now, try open new SSH window with your new modified port number.<\/p>\n</p><p><strong>NOTE : Before closing the old session, make sure you can able to access SSH using new port number and the same was enabled in your firewall (if you are using any firewall in your server)<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>&#46;&#46;&#46;<\/p>\n","protected":false},"author":1,"featured_media":1005,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[189,192,191,14],"tags":[29,30],"class_list":["post-273","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-howtos","category-centos-6-rhel-6","category-centos-7-rhel-7","category-security","tag-changing-ssh-port","tag-ssh-port"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/www.webhostingchennai.co.in\/blog\/wp-content\/uploads\/2017\/07\/ssh-port-change.jpg?fit=630%2C240&ssl=1","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p9NOHH-4p","jetpack-related-posts":[{"id":439,"url":"https:\/\/www.webhostingchennai.co.in\/blog\/install-and-configure-csf-centos7\/","url_meta":{"origin":273,"position":0},"title":"Install and Configure CSF (Config Server Firewall) on CentOS 7","author":"Cavin","date":"July 6, 2017","format":false,"excerpt":"Install and configure CSF (Config Server Firewall) on CentOS 7. Before going further, lets see what is\u00a0\u00a0CSF(Config Server Firewall) ? CSF,\u00a0a\u00a0firewall application suite for Linux servers. CSF is also a Login\/Intrusion Detection for applications like SSH, SMTP, IMAP, Pop3, the \"su\" command etc,. It also checks for login authentication failures\u2026","rel":"","context":"In &quot;CentOS \/ REDHAT&quot;","block_context":{"text":"CentOS \/ REDHAT","link":"https:\/\/www.webhostingchennai.co.in\/blog\/category\/linux\/centos-redhat\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.webhostingchennai.co.in\/blog\/wp-content\/uploads\/2017\/07\/firewall-install.jpg?fit=640%2C260&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.webhostingchennai.co.in\/blog\/wp-content\/uploads\/2017\/07\/firewall-install.jpg?fit=640%2C260&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/www.webhostingchennai.co.in\/blog\/wp-content\/uploads\/2017\/07\/firewall-install.jpg?fit=640%2C260&ssl=1&resize=525%2C300 1.5x"},"classes":[]},{"id":1004,"url":"https:\/\/www.webhostingchennai.co.in\/blog\/firewall-setup-on-dedicated-linux-server\/","url_meta":{"origin":273,"position":1},"title":"Basic Firewall Setup on Dedicated Linux Server","author":"Cavin","date":"August 3, 2018","format":false,"excerpt":"Basic Firewall Setup on Dedicated Linux Server A firewall will stop any unusual activities on one network from being passed on to another network. In most systems the Linux kernel is compiled with IP forwarding set to yes. This means is that if the computer has more than one network\u2026","rel":"","context":"In &quot;LINUX&quot;","block_context":{"text":"LINUX","link":"https:\/\/www.webhostingchennai.co.in\/blog\/category\/linux\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.webhostingchennai.co.in\/blog\/wp-content\/uploads\/2018\/08\/firewall-setup.jpg?fit=630%2C316&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.webhostingchennai.co.in\/blog\/wp-content\/uploads\/2018\/08\/firewall-setup.jpg?fit=630%2C316&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/www.webhostingchennai.co.in\/blog\/wp-content\/uploads\/2018\/08\/firewall-setup.jpg?fit=630%2C316&ssl=1&resize=525%2C300 1.5x"},"classes":[]},{"id":661,"url":"https:\/\/www.webhostingchennai.co.in\/blog\/disabling-direct-root-login\/","url_meta":{"origin":273,"position":2},"title":"Disabling direct root login and Permitting through &#8220;su&#8221; user in Linux","author":"Cavin","date":"January 2, 2018","format":false,"excerpt":"Disabling direct root login and Permitting through \"su\" user in Linux Does everyone knows, nowadays we have facing number of Hacking attempts. Especially in linux servers,\u00a0 we need to enable\/disable some components to prevent those kind of hacking attempts. By default the root user is enabled in linux server and\u2026","rel":"","context":"In &quot;VPS&quot;","block_context":{"text":"VPS","link":"https:\/\/www.webhostingchennai.co.in\/blog\/category\/vps\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.webhostingchennai.co.in\/blog\/wp-content\/uploads\/2018\/01\/SSH-Root.jpg?fit=640%2C260&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.webhostingchennai.co.in\/blog\/wp-content\/uploads\/2018\/01\/SSH-Root.jpg?fit=640%2C260&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/www.webhostingchennai.co.in\/blog\/wp-content\/uploads\/2018\/01\/SSH-Root.jpg?fit=640%2C260&ssl=1&resize=525%2C300 1.5x"},"classes":[]},{"id":704,"url":"https:\/\/www.webhostingchennai.co.in\/blog\/setup-ftp-server-on-centos\/","url_meta":{"origin":273,"position":3},"title":"How to setup FTP server on centos 7.3 ( VSFTP )","author":"Cavin","date":"February 5, 2018","format":false,"excerpt":"Setting up FTP server on Centos 7.3 ( VSFTP ) FTP server is used to transfer the\u00a0 files between computers \/ servers over network . This article helps you to setup ftp server on centos 7.3, also this article contains configuration steps for both FTP and SFTP as well as\u2026","rel":"","context":"In &quot;VPS&quot;","block_context":{"text":"VPS","link":"https:\/\/www.webhostingchennai.co.in\/blog\/category\/vps\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.webhostingchennai.co.in\/blog\/wp-content\/uploads\/2018\/02\/VSFTP.jpg?fit=640%2C260&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.webhostingchennai.co.in\/blog\/wp-content\/uploads\/2018\/02\/VSFTP.jpg?fit=640%2C260&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/www.webhostingchennai.co.in\/blog\/wp-content\/uploads\/2018\/02\/VSFTP.jpg?fit=640%2C260&ssl=1&resize=525%2C300 1.5x"},"classes":[]},{"id":590,"url":"https:\/\/www.webhostingchennai.co.in\/blog\/installing-cwp-on-centos-7\/","url_meta":{"origin":273,"position":4},"title":"Installing CentOS Web Panel on Centos 7","author":"Cavin","date":"August 5, 2017","format":false,"excerpt":"In this tutorial we are going to see, how to install and configure\u00a0CentOS Web Panel on Centos 7 About CentOS Web Panel CentOS Web panel(CWP),\u00a0is a free, Open Source control panel that can be widely used for deploying a Web hosting environment easily. Unlike other Control panels, CWP is automatically\u2026","rel":"","context":"In &quot;VPS&quot;","block_context":{"text":"VPS","link":"https:\/\/www.webhostingchennai.co.in\/blog\/category\/vps\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.webhostingchennai.co.in\/blog\/wp-content\/uploads\/2017\/08\/CWPmain.jpg?fit=640%2C260&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.webhostingchennai.co.in\/blog\/wp-content\/uploads\/2017\/08\/CWPmain.jpg?fit=640%2C260&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/www.webhostingchennai.co.in\/blog\/wp-content\/uploads\/2017\/08\/CWPmain.jpg?fit=640%2C260&ssl=1&resize=525%2C300 1.5x"},"classes":[]},{"id":543,"url":"https:\/\/www.webhostingchennai.co.in\/blog\/installing-suphp-centos-7-3\/","url_meta":{"origin":273,"position":5},"title":"Installing SuPHP on CentOS 7.3","author":"Cavin","date":"July 19, 2017","format":false,"excerpt":"This tutorial shows, how you can install SuPHP on CentOS 7.3. SuPHP is an apache module that allows PHP to access under a different Linux user than the apache user. This improves the security of hosted websites as you can run the PHP scripts of each website under a different\u2026","rel":"","context":"In &quot;LINUX&quot;","block_context":{"text":"LINUX","link":"https:\/\/www.webhostingchennai.co.in\/blog\/category\/linux\/"},"img":{"alt_text":"","src":"https:\/\/www.webhostingchennai.co.in\/blog\/wp-content\/uploads\/2017\/07\/z26d0wew.bmp","width":350,"height":200,"srcset":"https:\/\/www.webhostingchennai.co.in\/blog\/wp-content\/uploads\/2017\/07\/z26d0wew.bmp 1x, https:\/\/www.webhostingchennai.co.in\/blog\/wp-content\/uploads\/2017\/07\/z26d0wew.bmp 1.5x, https:\/\/www.webhostingchennai.co.in\/blog\/wp-content\/uploads\/2017\/07\/z26d0wew.bmp 2x"},"classes":[]}],"_links":{"self":[{"href":"https:\/\/www.webhostingchennai.co.in\/blog\/wp-json\/wp\/v2\/posts\/273","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.webhostingchennai.co.in\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.webhostingchennai.co.in\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.webhostingchennai.co.in\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.webhostingchennai.co.in\/blog\/wp-json\/wp\/v2\/comments?post=273"}],"version-history":[{"count":24,"href":"https:\/\/www.webhostingchennai.co.in\/blog\/wp-json\/wp\/v2\/posts\/273\/revisions"}],"predecessor-version":[{"id":1469,"href":"https:\/\/www.webhostingchennai.co.in\/blog\/wp-json\/wp\/v2\/posts\/273\/revisions\/1469"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.webhostingchennai.co.in\/blog\/wp-json\/wp\/v2\/media\/1005"}],"wp:attachment":[{"href":"https:\/\/www.webhostingchennai.co.in\/blog\/wp-json\/wp\/v2\/media?parent=273"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.webhostingchennai.co.in\/blog\/wp-json\/wp\/v2\/categories?post=273"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.webhostingchennai.co.in\/blog\/wp-json\/wp\/v2\/tags?post=273"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}</p></strong></p></pre></strong></p></pre></strong></p></strong></p></pre></pre></strong></p></strong></p></a></p></strong></span></h4>