logo
  • Ospitando
    Web HostingWeb Hosting Web HostingWordPress Hosting Reseller hostingHosting per rivenditori
  • VPS
    vpsLinux VPS aapanel vpsaaPanel VPS
  • Windows VPS
    windows rdpWindows VPS trading vpsScambio di VPS
  • Domini
    domain registerRegistro di dominio domain transferTrasferimento di dominio domain whoisDominio Whois
  • circa
    contact usContattaci about usChi siamo blogBlog
  • Accesso
  • italy
    EnglishEnglish arabicArabic KurdishKurdish HindiHindi 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 è stata fondata per fornire la migliore combinazione al mondo di prezzo, velocità, qualità e implementazione intelligente nei servizi di web hosting.

  • Facebook
  • twitter
  • Linkedin
  • youtube
4.9 Average 294 Reviews
Web Hosting
  • cPanel Hosting
  • WordPress Hosting
  • Laravel Hosting
  • NodeJs Hosting
  • Hosting per rivenditori
VPS
  • VPS Hosting
  • Linux VPS
  • Windows VPS
  • Scambio di VPS
  • aaPanel VPS
Domini
  • Registro di dominio
  • Trasferimento di dominio
  • Dominio Whois
Azienda
  • Chi siamo
  • Contattaci
  • Termini di utilizzo
  • tempo di attività
© 2022 - REGXA LIMITATA. Tutti i diritti riservati.
Bitcoin Bitcoin Bitcoin Bitcoin Bitcoin Bitcoin Bitcoin Bitcoin Bitcoin Bitcoin Tether ethereum shiba inu Doge Lite Coin XRP ADA