logo
  • मेजबानी
    Web Hostingवेब होस्टिंग Web Hostingवर्डप्रेस होस्टिंग Reseller hostingमेजबानी को दुबारा बेचने वाला
  • वीपीएस
    vpsलिनक्स वीपीएस aapanel vpsएएपैनल वीपीएस
  • विंडोज वीपीएस
    windows rdpविंडोज वीपीएस trading vpsट्रेडिंग वीपीएस
  • डोमेन
    domain registerडोमेन रजिस्टर domain transferडोमेन स्थानांतरण domain whoisडोमेन हूइस
  • के बारे में
    contact usसंपर्क करें about usहमारे बारे में blogब्लॉग
  • लॉग इन करें
  • Hindi
    EnglishEnglish arabicArabic KurdishKurdish 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 होस्टिंग
  • वर्डप्रेस होस्टिंग
  • लारवेल होस्टिंग
  • NodeJs होस्टिंग
  • मेजबानी को दुबारा बेचने वाला
वीपीएस
  • वीपीएस होस्टिंग
  • लिनक्स वीपीएस
  • विंडोज वीपीएस
  • ट्रेडिंग वीपीएस
  • एएपैनल वीपीएस
डोमेन
  • डोमेन रजिस्टर
  • डोमेन स्थानांतरण
  • डोमेन हूइस
कंपनी
  • हमारे बारे में
  • संपर्क करें
  • उपयोग की शर्तें
  • सक्रिय रहने की अवधि
© 2022 - रेगक्सा लिमिटेड। सर्वाधिकार सुरक्षित।
Bitcoin Bitcoin Bitcoin Bitcoin Bitcoin Bitcoin Bitcoin Bitcoin Bitcoin Bitcoin Tether ethereum shiba inu Doge Lite Coin XRP ADA