logo
  • استضافه
    Web Hostingاستضافة موقع Web Hostingاستضافة ووردبريس Reseller hostingموزع استضافة
  • VPS
    vpsLinux VPS aapanel vpsaaPanel VPS
  • Windows VPS
    windows rdpWindows VPS trading vpsتداول VPS
  • المجالات
    domain registerتسجيل المجال domain transferنقل المجال domain whoisWhois المجال
  • حول
    contact usاتصل بنا about usمعلومات عنا blogمقالات
  • يسجل دخول
  • arabic
    EnglishEnglish KurdishKurdish HindiHindi ItalyItaly TurkishTurkish
  1. Home
  2. Blog
  3. Centos Change SSH Port

Centos Change SSH Port

Rozhgur Rozhgur, 14 Apr 2022 | time 4 minutes read | 61 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)

Rozhgur Rozhgur, 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 unblock IP on WHM - Reseller website

How to unblock IP on WHM - Reseller website

Rozhgur Rozhgur, 07 May 2022 | time 2 minutes read
How to unblock IP on WHM - Reseller website A firewall is commonly built to... Read More
Centos clean up disk space

Centos clean up disk space

Rozhgur Rozhgur, 17 Mar 2022 | time 4 minutes read
If you've found this page, it's most likely because you're seeking for a solution to... Read More
Regxa

تم تأسيس REGXA لتوفير أفضل مزيج في العالم من حيث السعر والسرعة والجودة والتنفيذ الذكي في خدمات استضافة الويب.

  • Facebook
  • twitter
  • Linkedin
  • youtube
4.9 Average 294 Reviews
استضافة موقع
  • استضافة cPanel
  • استضافة ووردبريس
  • استضافة Laravel
  • استضافة NodeJs
  • موزع استضافة
VPS
  • استضافة VPS
  • Linux VPS
  • Windows VPS
  • تداول VPS
  • aaPanel VPS
المجالات
  • تسجيل المجال
  • نقل المجال
  • Whois المجال
شركة
  • معلومات عنا
  • اتصل بنا
  • تعليمات الاستخدام
  • الجهوزية
© 2022 - ريكسا المحدودة. جميع الحقوق محفوظة.
Bitcoin Bitcoin Bitcoin Bitcoin Bitcoin Bitcoin Bitcoin Bitcoin Bitcoin Bitcoin Tether ethereum shiba inu Doge Lite Coin XRP ADA