• العربية
  • Azerbaijani
  • Català
  • 中文
  • Hrvatski
  • Čeština
  • Dansk
  • Nederlands
  • English
  • Estonian
  • Persian
  • Français
  • Deutsch
  • עברית
  • Magyar
  • Italiano
  • Macedonian
  • Norwegian
  • Português
  • Português
  • Română
  • Русский
  • Español
  • Svenska
  • Türkçe
  • Українська
  • Konto
    • Logg inn
    • Registrer
    • Glemt Passord?
  • FairyHosting.com
      • Tjenester
      • Bestill ny tjeneste
      • Domener
      • DNS MANAGER
      • Overfør penger
      • Betale flere fakturaer

      Kategorier

    Hestia CP
    2
    ISPmanager
    9
    Linux Сервер
    25
    Plesk
    14
    Windows Сервер
    14
    Услуга Fairy Disk
    4
    Микротик (RouterOS)
    8
    Менеджмент сервера
    19
    Для нового клиента
    13

      Kategorier

      Tag-sky

    Debian Восстановление root пароля CentOS7 Linux сброс root пароля CentOS7 сервер Password recovery Root password Ubuntu

      Støtte

    Brukerstøtte
    Kunnskapsbase
    Ny henvendelse

    Configuring SSH Access for a Specific IP Address on CentOS 9 Skriv ut

    • 0

    This article will help you create rules to restrict SSH connections from unknown IP addresses. This will enhance the security of your server.

    First, you need to install the firewall. Enter the command dnf install firewalld, then confirm the action by typing Y.

    After the successful installation, start firewalld with the command systemctl start firewalld

    Check the status by entering the command systemctl status firewalld. Make sure the status is active and then press CTRL+C.

    Run the command:

    firewall-cmd --permanent --add-rich-rule='rule family="ipv4" source address="<ip_address>" service name="ssh" accept'

    This rule allows connections to your server from the IP address specified in the "source address" attribute.

    Run the command:

    firewall-cmd --permanent --remove-service=ssh

    This rule denies SSH connections from any IP address except the allowed ones.

    Reload firewalld with the command firewall-cmd --reload

    Check the active rules with the command firewall-cmd --list-all.

    Now, your server can only be accessed from the IP address specified in the rule. In our example, this is 127.0.0.1.


    Var dette svaret til hjelp?

    Relaterte artikler

    Установка ioncube Установка ioncube на сервер с ОС Debian   1. Скачиваем архив с сайта разработчика wget... Тест скорости интернета в Linux Данная статья поможет Вам узнать, как можно измерить скорость интернета на сервере с Linux... Обновление nginx на Debian 6 1. Качаем ключ nginx wget http//nginx.org/keys/nginx_signing.key 2. Добавляем его apt key add... Установка ionCube PHP Loader CentOS/Debian Устанавливаем расширение ionCube PHP Loader с помощью SSH клиента. Для начала Вам необходимо... Как изменить SSH порт По-умолчанию SSH сервер использует 22 порт. Открываем конфигурационном файл /etc/ssh/sshd_config...
    « Tilbake

      Tag-sky

    Debian Восстановление root пароля CentOS7 Linux сброс root пароля CentOS7 сервер Password recovery Root password Ubuntu

      Støtte

    Brukerstøtte
    Kunnskapsbase
    Ny henvendelse

      RJ Network OÜ
      Reg.nr 14694302
      VAT ID: EE102147829

      Narva: P. Kerese tn 5, 20309
      Tallinn: Paul Pinna 8, 13615

    +372 6647001

    [email protected]

    Copyright © 2025 FairyHosting.com. All Rights Reserved.


    Laster...
    Laster...
    Velg språk
    العربية
    Azerbaijani
    Català
    中文
    Hrvatski
    Čeština
    Dansk
    Nederlands
    English
    Estonian
    Persian
    Français
    Deutsch
    עברית
    Magyar
    Italiano
    Macedonian
    Norwegian
    Português
    Português
    Română
    Русский
    Español
    Svenska
    Türkçe
    Українська

    Generer passord

    Vennligst skriv inn et tall mellom 8 og 64 tegn for passordlengden