Openssh-9.3p2 AlmaLinux8

AlmaLinux8 に セキュリティ的に対応したOpensshのソース(openssh-9.3p2.tar.gz)からのインストール方法

# dnf remove openssh
# wget -c https://cdn.openbsd.org/pub/OpenBSD/OpenSSH/portable/openssh-9.3p2.tar.gz
# tar xvfzp openssh-9.3p2.tar.gz -C /usr/local/src/

# dnf install pam-devel
# cd /usr/local/src/openssh-9.3p2/
# ./configure --with-zlib=/usr/local --with-tcp-wrappers  \
--with-ssl-dir=/usr/local/ssl --with-ssl-engine --with-pam \
--with-md5-passwords --bindir=/usr/bin --sbindir=/usr/sbin \
--libexecdir=/usr/libexec --sysconfdir=/etc/ssh
# make
# chmod 600 /etc/ssh/ssh_host_*_key
# make install
# make clean

# vi /etc/systemd/system/sshd.service
[Unit]
Description = sshd 9.3 p2

[Service]
ExecStart = /usr/sbin/sshd
Restart = always
Type = simple

[Install]
WantedBy = multi-user.target

# systemctl list-unit-files --type=service | grep sshd
# systemctl enable sshd
# systemctl list-unit-files --type=service | grep sshd
# reboot