logo
  • Hosting
    Web HostingWeb Hosting Web HostingWordPress Hosting Reseller hostingReseller Hosting
  • VPS
    vpsLinux VPS aapanel vpsaaPanel VPS
  • Windows VPS
    windows rdpWindows VPS trading vpsTrading VPS
  • Domains
    domain registerDomain Register domain transferDomain Transfer domain whoisDomain Whois
  • About
    contact usContact Us about usAbout Us blogBlog
  • Log in
  • ENGLISH
    arabicArabic KurdishKurdish HindiHindi ItalyItaly TurkishTurkish
  1. Home
  2. Blog
  3. Centos Change SSH Port

Centos Change SSH Port

Mohammed Salih Mohammed Salih, 14 Apr 2022 | time 4 minutes read | 45 Views
Centos Change SSH Port

How To Centos Change SSH Port


Through this video, You can learn step by step how to change the ssh port on centos 6, 7, and 8 on REGXA very easily and quickly.



1-  Install firewalld


# sudo yum -y install firewalld

2-  Start the firewall  


# systemctl start firewalld

3-  install policycoreutils python utils


# sudo yum -y install policycoreutils-python-utils

4-  install net-tools


# sudo yum -y install net-tools

5-  install Nano


# sudo yum -y install nano

6-  Change Port Number


# nano /etc/ssh/sshd_config

6-  Run these commands to save the update


For Saving # CTRL+X 
For Confirmation # y
For Completing # Enter = Save

7-  Check the SSH Port


# semanage port -l | grep ssh

8-  Listening the new port by the firewall


#  sudo semanage port -a -t ssh_port_t -p tcp 3223

9-  Double Listening the new port by the firewall


# sudo firewall-cmd --add-port=3223/tcp --permanent

10-  Reload Firewall to set the new SSH Port


# sudo firewall-cmd --reload

11-  Restart SSH to load new settings


# sudo systemctl restart sshd

Conclusion


Congratulations! You have successfully changed the ssh port. Try Centos today on VPS hosting from REGXA.COM.

Popular Posts
How to Install / Uninstall ConfigServer eXploit Scanner (cxs)

How to Install / Uninstall ConfigServer eXploit Scanner (cxs)

Mohammed Salih Mohammed Salih, 17 Mar 2022 | time 4 minutes read
The CXS is a commercial product, so you need to purchase a license from their... Read More
How to deploy laravel project on cpanel

How to deploy laravel project on cpanel

Mohammed Salih Mohammed Salih, 01 Apr 2022 | time 6 minutes read
How to deploy Laravel project on cPanel Table of Contents How to deploy Laravel project... Read More
How to unblock IP on WHM - Reseller website

How to unblock IP on WHM - Reseller website

Mohammed Salih Mohammed Salih, 07 May 2022 | time 2 minutes read
How to unblock IP on WHM - Reseller website A firewall is commonly built to... Read More
Regxa

REGXA Was Founded To Provide The World's Best Combination Of Price, Speed, Quality And Intelligent Implementation In Web Hosting Services.

  • Facebook
  • twitter
  • Linkedin
  • youtube
4.9 Average 294 Reviews
Web Hosting
  • cPanel Hosting
  • WordPress Hosting
  • Laravel Hosting
  • NodeJs Hosting
  • Reseller Hosting
VPS
  • VPS Hosting
  • Linux VPS
  • Windows VPS
  • Trading VPS
  • aaPanel VPS
Domains
  • Domain Register
  • Domain Transfer
  • Domain Whois
Company
  • About Us
  • Contact Us
  • Terms Of Use
  • uptime
© 2022 - REGXA LLC. All Rights Reserved.
Bitcoin Bitcoin Bitcoin Bitcoin Bitcoin Bitcoin Bitcoin Bitcoin Bitcoin Bitcoin Tether ethereum shiba inu Doge Lite Coin XRP ADA