环境说明:
操作系统版本:Alibaba Cloud linux2
cat /etc/os-release
NAME="Alibaba Cloud Linux (Aliyun Linux)"
VERSION="2.1903 LTS (Hunting Beagle)"
ID="alinux"
ID_LIKE="rhel fedora centos anolis"
VERSION_ID="2.1903"
PRETTY_NAME="Alibaba Cloud Linux (Aliyun Linux) 2.1903 LTS (Hunting Beagle)"
ANSI_COLOR="0;31"
HOME_URL="https://www.aliyun.com/"
cat /etc/redhat-release
Alibaba Cloud Linux (Aliyun Linux) release 2.1903 LTS (Hunting Beagle)
ssh版本:ssh -V
OpenSSH_7.4p1, OpenSSL 1.0.2k-fips 26 Jan 2017
制作安装过程同centos 7 制作openssh8.7/8.8/8.9/9.0/9.1 p1 rpm包升级——筑梦之路_筑梦之路的博客-CSDN博客_openssh rpm包
查看制作成果
tree rpmbuild/SRPMS/
rpmbuild/SRPMS/
└── openssh-9.1p1-1.al7.src.rpm
tree rpmbuild/RPMS/x86_64/
rpmbuild/RPMS/x86_64/
├── openssh-9.1p1-1.al7.x86_64.rpm
├── openssh-askpass-9.1p1-1.al7.x86_64.rpm
├── openssh-askpass-gnome-9.1p1-1.al7.x86_64.rpm
├── openssh-clients-9.1p1-1.al7.x86_64.rpm
├── openssh-debuginfo-9.1p1-1.al7.x86_64.rpm
└── openssh-server-9.1p1-1.al7.x86_64.rpm
# 验证
ssh -V
OpenSSH_9.1p1, OpenSSL 1.0.2k-fips 26 Jan 2017
systemctl status sshd | grep running
Active: active (running) since 五 2022-10-28 00:18:12 -08; 25s ago
# 已关闭防火墙和selinux
openssh 9.3 p1 openssh 9.2 p1 rpm包的制作和9.1 p1一样,只有版本的差异。