・SSH サーバーのインストール確認
[root@alma]# dnf list installed | grep ssh
libssh.x86_64 0.10.4-13.el9 @anaconda
ibssh-config.noarch 0.10.4-13.el9 @anaconda
openssh.x86_64 8.7p1-43.el9 @anaconda
openssh-clients.x86_64 8.7p1-43.el9 @anaconda
openssh-server.x86_64 8.7p1-43.el9 @anaconda

インストールされています
もし、インストールされていなければインストールします

・SSH サーバーのインストール

[root@alma]# dnf install -y openssh
[root@alma]# dnf install –y libssh

・SSH サーバーの起動

[root@alma]# systemctl start sshd

・ssh サーバのシステム起動時の有効化

[root@alma]# systemctl enable sshd

・ssh サーバの起動状態を確認

[root@alma]# systemctl status sshd
sshd.service - OpenSSH server daemonvabled)
Active: active (running) since Fri 2021-04-09 20:04:33 EDT; 3h 29min ago
Docs: man:sshd(8) Connection successfully activated(D-Bus active path:
/org/freedesktop/NetworkManager/ActiveConnection/~)
man:sshd_config(5)
Main PID: 833 (sshd)
Tasks: 1 (limit: 10423)
Memory: 5.2M
CGroup: /system.slice/sshd.service
└─833 /usr/sbin/sshd -D -oCiphers=aes256-gcm@openssh.com,

≪ 以下省略 ≫

・SSH 経由でのサーバーへの root のログイン設定

[root@alma]# vi /etc/ssh/sshd_config.d/01-permitrootlogin.conf
# This file has been generated by the Anaconda Installer.
# Allow root to log in using ssh. Remove this file to opt-out.
PermitRootLogin yes ※yes = SSH 経由での root のログインを許可

PermitRootLogin no ※no = SSH 経由での root のログインを許可しない