>
・インストール確認
[root@centos]# dnf list installed | grep ssh
libssh.x86_64 0.9.4-2.el8 @anaconda
ibssh-config.noarch 0.9.4-2.el8 @anaconda
openssh.x86_64 8.0p1-5.el8 @anaconda
openssh-clients.x86_64 8.0p1-5.el8 @anaconda
openssh-server.x86_64 8.0p1-5.el8 @anaconda

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


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

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


・SSH サーバーの起動

[root@centos]# systemctl start sshd


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

[root@centos]# systemctl enable sshd


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

[root@centos]# systemctl status sshd
sshd.service - OpenSSH server daemonv
Loaded: loaded (/usr/lib/systemd/system/sshd.service; enabled; vendor preset: enabled)
Active: active (running) since Fri 2021-04-09 20:04:33 EDT; 3h 29min ago
Docs: man:sshd(8)
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,

≪ 以下省略 ≫