CentOS: SSH Security

Change SSH Port:

  1. Edit /etc/ssh/sshd_config.
  2. Change Port 22 to Port 2222 (example).
  3. Important: Allow port 2222 in Firewalld first!
  4. firewall-cmd --add-port=2222/tcp
  5. Restart SSHD.
  • 0 Utilizadores acharam útil
Esta resposta foi útil?

Artigos Relacionados

CentOS Stream: Updates

Welcome to CentOS Stream!Update to the latest rolling release packages:dnf update -y

CentOS Stream: Firewall Configuration

Ensure Firewalld is running:systemctl start firewalldAdd rules:firewall-cmd --permanent...