redhat 9.0 制作openssh rpm包(9.0p1) —— 筑梦之路

#redhat 9.0 系统镜像下载

百度网盘链接:https://pan.baidu.com/s/1Wm6xK0qEwPzPEHF0zT16pw 提取码:moqm

链接失效时请前往官方网站下载
#当前环境信息

uname -a
Linux localhost.localdomain 5.14.0-70.13.1.el9_0.x86_64 #1 SMP PREEMPT Thu Apr 14 12:42:38 EDT 2022 x86_64 x86_64 x86_64 GNU/Linux

cat /etc/redhat-release
Red Hat Enterprise Linux release 9.0 (Plow)

cat /etc/os-release
NAME="Red Hat Enterprise Linux"
VERSION="9.0 (Plow)"
ID="rhel"
ID_LIKE="fedora"
VERSION_ID="9.0"
PLATFORM_ID="platform:el9"
PRETTY_NAME="Red Hat Enterprise Linux 9.0 (Plow)"
ANSI_COLOR="0;31"
LOGO="fedora-logo-icon"
CPE_NAME="cpe:/o:redhat:enterprise_linux:9::baseos"
HOME_URL="https://www.redhat.com/"
DOCUMENTATION_URL="https://access.redhat.com/documentation/red_hat_enterprise_linux/9/"
BUG_REPORT_URL="https://bugzilla.redhat.com/"

REDHAT_BUGZILLA_PRODUCT="Red Hat Enterprise Linux 9"
REDHAT_BUGZILLA_PRODUCT_VERSION=9.0
REDHAT_SUPPORT_PRODUCT="Red Hat Enterprise Linux"
REDHAT_SUPPORT_PRODUCT_VERSION="9.0"
#制作openssh 9.0p1 适用于centos 9 redhat 9.0的rpm包

1.安装依赖包

dnf install rpm-build zlib-devel openssl-devel gcc perl-devel pam-devel  libXt-devel gtk2-devel make perl krb5-devel -y

wget http://rpmfind.net/linux/epel/9/Everything/x86_64/Packages/i/imake-1.0.8-6.el9.x86_64.rpm

rpm -ivh imake*.rpm

2.下载所需源码

wget https://src.fedoraproject.org/repo/pkgs/openssh/x11-ssh-askpass-1.2.4.1.tar.gz/8f2e41f3f7eaa8543a2440454637f3c3/x11-ssh-askpass-1.2.4.1.tar.gz

wget https://mirrors.aliyun.com/pub/OpenBSD/OpenSSH/portable/openssh-9.0p1.tar.gz

3.创建所需目录

mkdir -p rpmbuild/{SPECS,SOURCES}

4.解压源码并拷贝所需文件到对应目录

cp openssh-9.0p1.tar.gz rpmbuild/SOURCES

cp x11-ssh-askpass-1.2.4.1.tar.gz rpmbuild/SOURCES

tar -zxf openssh-9.0p1.tar.gz

cp openssh-9.0p1/contrib/redhat/openssh.spec rpmbuild/SPECS/

4.修改openssh.spec

此处参考前面的博客

https://blog.csdn.net/qq_34777982/article/details/120048044


5.制作rpm包结果如下

rpmbuild -ba openssh.spec

[root@localhost ~]# tree rpmbuild/RPMS/x86_64/
rpmbuild/RPMS/x86_64/
├── openssh-9.0p1-1.el9.x86_64.rpm
├── openssh-askpass-9.0p1-1.el9.x86_64.rpm
├── openssh-askpass-debuginfo-9.0p1-1.el9.x86_64.rpm
├── openssh-askpass-gnome-9.0p1-1.el9.x86_64.rpm
├── openssh-askpass-gnome-debuginfo-9.0p1-1.el9.x86_64.rpm
├── openssh-clients-9.0p1-1.el9.x86_64.rpm
├── openssh-clients-debuginfo-9.0p1-1.el9.x86_64.rpm
├── openssh-debuginfo-9.0p1-1.el9.x86_64.rpm
├── openssh-debugsource-9.0p1-1.el9.x86_64.rpm
├── openssh-server-9.0p1-1.el9.x86_64.rpm
└── openssh-server-debuginfo-9.0p1-1.el9.x86_64.rpm

0 directories, 11 files


[root@localhost ~]# tree rpmbuild/SRPMS/
rpmbuild/SRPMS/
└── openssh-9.0p1-1.el9.src.rpm

0 directories, 1 file
[root@localhost ~]# tree rpmbuild/SOURCES/
rpmbuild/SOURCES/
├── openssh-9.0p1.tar.gz
└── x11-ssh-askpass-1.2.4.1.tar.gz

0 directories, 2 files
[root@localhost ~]# tree rpmbuild/BUILD/openssh-9.0p1/
rpmbuild/BUILD/openssh-9.0p1/
├── aclocal.m4
├── addr.c
├── addr.h
├── addrmatch.c
├── addrmatch.o
├── addr.o
├── atomicio.c
├── atomicio.h
├── atomicio.o
├── audit-bsm.c
├── audit-bsm.o
├── audit.c
├── audit.h
├── audit-linux.c
├── audit-linux.o
├── audit.o
├── auth2.c
├── auth2-chall.c
├── auth2-chall.o
├── auth2-gss.c
├── auth2-gss.o
├── auth2-hostbased.c
├── auth2-hostbased.o
├── auth2-kbdint.c
├── auth2-kbdint.o
├── auth2-none.c
├── auth2-none.o
├── auth2.o
├── auth2-passwd.c
├── auth2-passwd.o
├── auth2-pubkey.c
├── auth2-pubkey.o
├── auth-bsdauth.c
├── auth-bsdauth.o
├── auth.c
├── authfd.c
├── authfd.h
├── authfd.o
├── authfile.c
├── authfile.h
├── authfile.o
├── auth.h
├── auth-krb5.c
├── auth-krb5.o
├── auth.o
├── auth-options.c
├── auth-options.h
├── auth-options.o
├── auth-pam.c
├── auth-pam.h
├── auth-pam.o
├── auth-passwd.c
├── auth-passwd.o
├── auth-rhosts.c
├── auth-rhosts.o
├── auth-shadow.c
├── auth-shadow.o
├── auth-sia.c
├── auth-sia.h
├── auth-sia.o
├── bitmap.c
├── bitmap.h
├── bitmap.o
├── buildpkg.sh
├── buildpkg.sh.in
├── canohost.c
├── canohost.h
├── canohost.o
├── chacha.c
├── chacha.h
├── chacha.o
├── ChangeLog
├── channels.c
├── channels.h
├── channels.o
├── cipher-aes.c
├── cipher-aesctr.c
├── cipher-aesctr.h
├── cipher-aesctr.o
├── cipher-aes.o
├── cipher.c
├── cipher-chachapoly.c
├── cipher-chachapoly.h
├── cipher-chachapoly-libcrypto.c
├── cipher-chachapoly-libcrypto.o
├── cipher-chachapoly.o
├── cipher-ctr.c
├── cipher-ctr.o
├── cipher.h
├── cipher.o
├── cleanup.c
├── cleanup.o
├── clientloop.c
├── clientloop.h
├── clientloop.o
├── compat.c
├── compat.h
├── compat.o
├── config.guess
├── config.h
├── config.h.in
├── config.log
├── config.status
├── config.sub
├── configure
├── configure.ac
├── contrib
│   ├── aix
│   │   ├── buildbff.sh
│   │   ├── inventory.sh
│   │   ├── pam.conf
│   │   └── README
│   ├── cygwin
│   │   ├── Makefile
│   │   ├── README
│   │   ├── sshd-inetd
│   │   ├── ssh-host-config
│   │   └── ssh-user-config
│   ├── findssl.sh
│   ├── gnome-ssh-askpass
│   ├── gnome-ssh-askpass1.c
│   ├── gnome-ssh-askpass2.c
│   ├── gnome-ssh-askpass3.c
│   ├── hpux
│   │   ├── egd
│   │   ├── egd.rc
│   │   ├── README
│   │   ├── sshd
│   │   └── sshd.rc
│   ├── Makefile
│   ├── README
│   ├── redhat
│   │   ├── gnome-ssh-askpass.csh
│   │   ├── gnome-ssh-askpass.sh
│   │   ├── openssh.spec
│   │   ├── sshd.init
│   │   └── sshd.pam
│   ├── solaris
│   │   └── README
│   ├── ssh-copy-id
│   ├── ssh-copy-id.1
│   ├── sshd.pam.freebsd
│   ├── sshd.pam.generic
│   └── suse
│       ├── openssh.spec
│       ├── rc.config.sshd
│       ├── rc.sshd
│       └── sysconfig.ssh
├── CREDITS
├── crypto_api.h
├── debugfiles.list
├── debuglinks.list
├── debugsourcefiles.list
├── debugsources.list
├── defines.h
├── dh.c
├── dh.h
├── dh.o
├── digest.h
├── digest-libc.c
├── digest-libc.o
├── digest-openssl.c
├── digest-openssl.o
├── dispatch.c
├── dispatch.h
├── dispatch.o
├── dns.c
├── dns.h
├── dns.o
├── ed25519.c
├── ed25519.o
├── elfbins.list
├── entropy.c
├── entropy.h
├── entropy.o
├── fatal.c
├── fatal.o
├── fe25519.c
├── fe25519.h
├── fe25519.o
├── fixalgorithms
├── fixpaths
├── ge25519_base.data
├── ge25519.c
├── ge25519.h
├── ge25519.o
├── groupaccess.c
├── groupaccess.h
├── groupaccess.o
├── gss-genr.c
├── gss-genr.o
├── gss-serv.c
├── gss-serv-krb5.c
├── gss-serv-krb5.o
├── gss-serv.o
├── hash.c
├── hash.o
├── hmac.c
├── hmac.h
├── hmac.o
├── hostfile.c
├── hostfile.h
├── hostfile.o
├── includes.h
├── INSTALL
├── install-sh
├── int32_minmax.inc
├── kex.c
├── kexc25519.c
├── kexc25519.o
├── kexdh.c
├── kexdh.o
├── kexecdh.c
├── kexecdh.o
├── kexgen.c
├── kexgen.o
├── kexgex.c
├── kexgexc.c
├── kexgexc.o
├── kexgex.o
├── kexgexs.c
├── kexgexs.o
├── kex.h
├── kex.o
├── kexsntrup761x25519.c
├── kexsntrup761x25519.o
├── krl.c
├── krl.h
├── krl.o
├── libssh.a
├── LICENCE
├── log.c
├── log.h
├── loginrec.c
├── loginrec.h
├── loginrec.o
├── logintest.c
├── log.o
├── m4
│   └── openssh.m4
├── mac.c
├── mac.h
├── mac.o
├── Makefile
├── Makefile.in
├── match.c
├── match.h
├── match.o
├── mdoc2man.awk
├── misc.c
├── misc.h
├── misc.o
├── mkinstalldirs
├── moduli
├── moduli.0
├── moduli.5
├── moduli.5.out
├── moduli.c
├── moduli.o
├── moduli.out
├── monitor.c
├── monitor_fdpass.c
├── monitor_fdpass.h
├── monitor_fdpass.o
├── monitor.h
├── monitor.o
├── monitor_wrap.c
├── monitor_wrap.h
├── monitor_wrap.o
├── msg.c
├── msg.h
├── msg.o
├── mux.c
├── mux.o
├── myproposal.h
├── nchan2.ms
├── nchan.c
├── nchan.ms
├── nchan.o
├── openbsd-compat
│   ├── arc4random.c
│   ├── arc4random.o
│   ├── base64.c
│   ├── base64.h
│   ├── base64.o
│   ├── basename.c
│   ├── basename.o
│   ├── bcrypt_pbkdf.c
│   ├── bcrypt_pbkdf.o
│   ├── bindresvport.c
│   ├── bindresvport.o
│   ├── blf.h
│   ├── blowfish.c
│   ├── blowfish.o
│   ├── bsd-asprintf.c
│   ├── bsd-asprintf.o
│   ├── bsd-closefrom.c
│   ├── bsd-closefrom.o
│   ├── bsd-cygwin_util.c
│   ├── bsd-cygwin_util.h
│   ├── bsd-cygwin_util.o
│   ├── bsd-err.c
│   ├── bsd-err.o
│   ├── bsd-flock.c
│   ├── bsd-flock.o
│   ├── bsd-getline.c
│   ├── bsd-getline.o
│   ├── bsd-getpagesize.c
│   ├── bsd-getpagesize.o
│   ├── bsd-getpeereid.c
│   ├── bsd-getpeereid.o
│   ├── bsd-malloc.c
│   ├── bsd-malloc.o
│   ├── bsd-misc.c
│   ├── bsd-misc.h
│   ├── bsd-misc.o
│   ├── bsd-nextstep.c
│   ├── bsd-nextstep.h
│   ├── bsd-nextstep.o
│   ├── bsd-openpty.c
│   ├── bsd-openpty.o
│   ├── bsd-poll.c
│   ├── bsd-poll.h
│   ├── bsd-poll.o
│   ├── bsd-pselect.c
│   ├── bsd-pselect.o
│   ├── bsd-setres_id.c
│   ├── bsd-setres_id.h
│   ├── bsd-setres_id.o
│   ├── bsd-signal.c
│   ├── bsd-signal.h
│   ├── bsd-signal.o
│   ├── bsd-snprintf.c
│   ├── bsd-snprintf.o
│   ├── bsd-statvfs.c
│   ├── bsd-statvfs.h
│   ├── bsd-statvfs.o
│   ├── bsd-waitpid.c
│   ├── bsd-waitpid.h
│   ├── bsd-waitpid.o
│   ├── chacha_private.h
│   ├── charclass.h
│   ├── daemon.c
│   ├── daemon.o
│   ├── dirname.c
│   ├── dirname.o
│   ├── explicit_bzero.c
│   ├── explicit_bzero.o
│   ├── fake-rfc2553.c
│   ├── fake-rfc2553.h
│   ├── fake-rfc2553.o
│   ├── fmt_scaled.c
│   ├── fmt_scaled.o
│   ├── fnmatch.c
│   ├── fnmatch.h
│   ├── fnmatch.o
│   ├── freezero.c
│   ├── freezero.o
│   ├── getcwd.c
│   ├── getcwd.o
│   ├── getgrouplist.c
│   ├── getgrouplist.o
│   ├── getopt.h
│   ├── getopt_long.c
│   ├── getopt_long.o
│   ├── getrrsetbyname.c
│   ├── getrrsetbyname.h
│   ├── getrrsetbyname-ldns.c
│   ├── getrrsetbyname-ldns.o
│   ├── getrrsetbyname.o
│   ├── glob.c
│   ├── glob.h
│   ├── glob.o
│   ├── inet_aton.c
│   ├── inet_aton.o
│   ├── inet_ntoa.c
│   ├── inet_ntoa.o
│   ├── inet_ntop.c
│   ├── inet_ntop.o
│   ├── kludge-fd_set.c
│   ├── kludge-fd_set.o
│   ├── libopenbsd-compat.a
│   ├── libressl-api-compat.c
│   ├── libressl-api-compat.o
│   ├── Makefile
│   ├── Makefile.in
│   ├── md5.c
│   ├── md5.h
│   ├── md5.o
│   ├── memmem.c
│   ├── memmem.o
│   ├── mktemp.c
│   ├── mktemp.o
│   ├── openbsd-compat.h
│   ├── openssl-compat.c
│   ├── openssl-compat.h
│   ├── openssl-compat.o
│   ├── port-aix.c
│   ├── port-aix.h
│   ├── port-aix.o
│   ├── port-irix.c
│   ├── port-irix.h
│   ├── port-irix.o
│   ├── port-linux.c
│   ├── port-linux.h
│   ├── port-linux.o
│   ├── port-net.c
│   ├── port-net.h
│   ├── port-net.o
│   ├── port-prngd.c
│   ├── port-prngd.o
│   ├── port-solaris.c
│   ├── port-solaris.h
│   ├── port-solaris.o
│   ├── port-uw.c
│   ├── port-uw.h
│   ├── port-uw.o
│   ├── pwcache.c
│   ├── pwcache.o
│   ├── readpassphrase.c
│   ├── readpassphrase.h
│   ├── readpassphrase.o
│   ├── reallocarray.c
│   ├── reallocarray.o
│   ├── recallocarray.c
│   ├── recallocarray.o
│   ├── regress
│   │   ├── closefromtest.c
│   │   ├── Makefile
│   │   ├── Makefile.in
│   │   ├── opensslvertest.c
│   │   ├── snprintftest.c
│   │   ├── strduptest.c
│   │   ├── strtonumtest.c
│   │   └── utimensattest.c
│   ├── rresvport.c
│   ├── rresvport.o
│   ├── setenv.c
│   ├── setenv.o
│   ├── setproctitle.c
│   ├── setproctitle.o
│   ├── sha1.c
│   ├── sha1.h
│   ├── sha1.o
│   ├── sha2.c
│   ├── sha2.h
│   ├── sha2.o
│   ├── sigact.c
│   ├── sigact.h
│   ├── sigact.o
│   ├── strcasestr.c
│   ├── strcasestr.o
│   ├── strlcat.c
│   ├── strlcat.o
│   ├── strlcpy.c
│   ├── strlcpy.o
│   ├── strmode.c
│   ├── strmode.o
│   ├── strndup.c
│   ├── strndup.o
│   ├── strnlen.c
│   ├── strnlen.o
│   ├── strptime.c
│   ├── strptime.o
│   ├── strsep.c
│   ├── strsep.o
│   ├── strtoll.c
│   ├── strtoll.o
│   ├── strtonum.c
│   ├── strtonum.o
│   ├── strtoul.c
│   ├── strtoull.c
│   ├── strtoull.o
│   ├── strtoul.o
│   ├── sys-queue.h
│   ├── sys-tree.h
│   ├── timingsafe_bcmp.c
│   ├── timingsafe_bcmp.o
│   ├── vis.c
│   ├── vis.h
│   ├── vis.o
│   ├── xcrypt.c
│   └── xcrypt.o
├── opensshd.init
├── opensshd.init.in
├── openssh.xml
├── openssh.xml.in
├── OVERVIEW
├── packet.c
├── packet.h
├── packet.o
├── pathnames.h
├── pkcs11.h
├── platform.c
├── platform.h
├── platform-misc.c
├── platform-misc.o
├── platform.o
├── platform-pledge.c
├── platform-pledge.o
├── platform-tracing.c
├── platform-tracing.o
├── poly1305.c
├── poly1305.h
├── poly1305.o
├── progressmeter.c
├── progressmeter.h
├── progressmeter.o
├── PROTOCOL
├── PROTOCOL.agent
├── PROTOCOL.certkeys
├── PROTOCOL.chacha20poly1305
├── PROTOCOL.key
├── PROTOCOL.krl
├── PROTOCOL.mux
├── PROTOCOL.sshsig
├── PROTOCOL.u2f
├── readconf.c
├── readconf.h
├── readconf.o
├── README
├── README.dns
├── README.md
├── README.platform
├── README.privsep
├── README.tun
├── readpass.c
├── readpass.o
├── regress
│   ├── addrmatch.sh
│   ├── agent-getpeereid.sh
│   ├── agent-pkcs11.sh
│   ├── agent-ptrace.sh
│   ├── agent-restrict.sh
│   ├── agent.sh
│   ├── agent-subprocess.sh
│   ├── agent-timeout.sh
│   ├── allow-deny-users.sh
│   ├── authinfo.sh
│   ├── banner.sh
│   ├── brokenkeys.sh
│   ├── broken-pipe.sh
│   ├── cert-file.sh
│   ├── cert-hostkey.sh
│   ├── cert-userkey.sh
│   ├── cfginclude.sh
│   ├── cfgmatchlisten.sh
│   ├── cfgmatch.sh
│   ├── cfgparse.sh
│   ├── check-perm.c
│   ├── cipher-speed.sh
│   ├── conch-ciphers.sh
│   ├── connect-privsep.sh
│   ├── connect.sh
│   ├── connect-uri.sh
│   ├── dhgex.sh
│   ├── dsa_ssh2.prv
│   ├── dsa_ssh2.pub
│   ├── dynamic-forward.sh
│   ├── ed25519_openssh.prv
│   ├── ed25519_openssh.pub
│   ├── envpass.sh
│   ├── exit-status.sh
│   ├── exit-status-signal.sh
│   ├── forcecommand.sh
│   ├── forward-control.sh
│   ├── forwarding.sh
│   ├── hostbased.sh
│   ├── host-expand.sh
│   ├── hostkey-agent.sh
│   ├── hostkey-rotate.sh
│   ├── integrity.sh
│   ├── kextype.sh
│   ├── keygen-change.sh
│   ├── keygen-comment.sh
│   ├── keygen-convert.sh
│   ├── keygen-knownhosts.sh
│   ├── keygen-moduli.sh
│   ├── keygen-sshfp.sh
│   ├── key-options.sh
│   ├── keyscan.sh
│   ├── keys-command.sh
│   ├── keytype.sh
│   ├── knownhosts-command.sh
│   ├── knownhosts.sh
│   ├── krl.sh
│   ├── limit-keytype.sh
│   ├── localcommand.sh
│   ├── login-timeout.sh
│   ├── Makefile
│   ├── misc
│   │   ├── fuzz-harness
│   │   │   ├── agent_fuzz.cc
│   │   │   ├── agent_fuzz_helper.c
│   │   │   ├── authopt_fuzz.cc
│   │   │   ├── fixed-keys.h
│   │   │   ├── kex_fuzz.cc
│   │   │   ├── Makefile
│   │   │   ├── privkey_fuzz.cc
│   │   │   ├── pubkey_fuzz.cc
│   │   │   ├── README
│   │   │   ├── sig_fuzz.cc
│   │   │   ├── sshsig_fuzz.cc
│   │   │   ├── sshsigopt_fuzz.cc
│   │   │   ├── ssh-sk-null.cc
│   │   │   └── testdata
│   │   │       ├── create-agent-corpus.sh
│   │   │       ├── id_dsa
│   │   │       ├── id_dsa-cert.pub
│   │   │       ├── id_dsa.pub
│   │   │       ├── id_ecdsa
│   │   │       ├── id_ecdsa-cert.pub
│   │   │       ├── id_ecdsa.pub
│   │   │       ├── id_ecdsa_sk
│   │   │       ├── id_ecdsa_sk-cert.pub
│   │   │       ├── id_ecdsa_sk.pub
│   │   │       ├── id_ed25519
│   │   │       ├── id_ed25519-cert.pub
│   │   │       ├── id_ed25519.pub
│   │   │       ├── id_ed25519_sk
│   │   │       ├── id_ed25519_sk-cert.pub
│   │   │       ├── id_ed25519_sk.pub
│   │   │       ├── id_rsa
│   │   │       ├── id_rsa-cert.pub
│   │   │       ├── id_rsa.pub
│   │   │       └── README
│   │   ├── Makefile
│   │   └── sk-dummy
│   │       ├── fatal.c
│   │       ├── Makefile
│   │       └── sk-dummy.c
│   ├── mkdtemp.c
│   ├── modpipe.c
│   ├── moduli.in
│   ├── multiplex.sh
│   ├── multipubkey.sh
│   ├── netcat.c
│   ├── percent.sh
│   ├── portnum.sh
│   ├── principals-command.sh
│   ├── proto-mismatch.sh
│   ├── proto-version.sh
│   ├── proxy-connect.sh
│   ├── putty-ciphers.sh
│   ├── putty-kex.sh
│   ├── putty-transfer.sh
│   ├── README.regress
│   ├── reconfigure.sh
│   ├── reexec.sh
│   ├── rekey.sh
│   ├── rsa_openssh.prv
│   ├── rsa_openssh.pub
│   ├── rsa_ssh2.prv
│   ├── scp3.sh
│   ├── scp.sh
│   ├── scp-ssh-wrapper.sh
│   ├── scp-uri.sh
│   ├── servcfginclude.sh
│   ├── setuid-allowed.c
│   ├── sftp-badcmds.sh
│   ├── sftp-batch.sh
│   ├── sftp-chroot.sh
│   ├── sftp-cmds.sh
│   ├── sftp-glob.sh
│   ├── sftp-perm.sh
│   ├── sftp.sh
│   ├── sftp-uri.sh
│   ├── ssh2putty.sh
│   ├── sshcfgparse.sh
│   ├── ssh-com-client.sh
│   ├── ssh-com-keygen.sh
│   ├── ssh-com-sftp.sh
│   ├── ssh-com.sh
│   ├── sshd-log-wrapper.sh
│   ├── sshfp-connect.sh
│   ├── sshsig.sh
│   ├── stderr-after-eof.sh
│   ├── stderr-data.sh
│   ├── t11.ok
│   ├── t4.ok
│   ├── t5.ok
│   ├── test-exec.sh
│   ├── transfer.sh
│   ├── try-ciphers.sh
│   ├── unittests
│   │   ├── authopt
│   │   │   ├── Makefile
│   │   │   ├── testdata
│   │   │   │   ├── all_permit.cert
│   │   │   │   ├── bad_sourceaddr.cert
│   │   │   │   ├── force_command.cert
│   │   │   │   ├── host.cert
│   │   │   │   ├── mktestdata.sh
│   │   │   │   ├── no_agentfwd.cert
│   │   │   │   ├── no_permit.cert
│   │   │   │   ├── no_portfwd.cert
│   │   │   │   ├── no_pty.cert
│   │   │   │   ├── no_user_rc.cert
│   │   │   │   ├── no_x11fwd.cert
│   │   │   │   ├── only_agentfwd.cert
│   │   │   │   ├── only_portfwd.cert
│   │   │   │   ├── only_pty.cert
│   │   │   │   ├── only_user_rc.cert
│   │   │   │   ├── only_x11fwd.cert
│   │   │   │   ├── sourceaddr.cert
│   │   │   │   └── unknown_critical.cert
│   │   │   └── tests.c
│   │   ├── bitmap
│   │   │   ├── Makefile
│   │   │   └── tests.c
│   │   ├── conversion
│   │   │   ├── Makefile
│   │   │   └── tests.c
│   │   ├── hostkeys
│   │   │   ├── Makefile
│   │   │   ├── mktestdata.sh
│   │   │   ├── testdata
│   │   │   │   ├── dsa_1.pub
│   │   │   │   ├── dsa_2.pub
│   │   │   │   ├── dsa_3.pub
│   │   │   │   ├── dsa_4.pub
│   │   │   │   ├── dsa_5.pub
│   │   │   │   ├── dsa_6.pub
│   │   │   │   ├── ecdsa_1.pub
│   │   │   │   ├── ecdsa_2.pub
│   │   │   │   ├── ecdsa_3.pub
│   │   │   │   ├── ecdsa_4.pub
│   │   │   │   ├── ecdsa_5.pub
│   │   │   │   ├── ecdsa_6.pub
│   │   │   │   ├── ed25519_1.pub
│   │   │   │   ├── ed25519_2.pub
│   │   │   │   ├── ed25519_3.pub
│   │   │   │   ├── ed25519_4.pub
│   │   │   │   ├── ed25519_5.pub
│   │   │   │   ├── ed25519_6.pub
│   │   │   │   ├── known_hosts
│   │   │   │   ├── rsa1_1.pub
│   │   │   │   ├── rsa1_2.pub
│   │   │   │   ├── rsa1_3.pub
│   │   │   │   ├── rsa1_4.pub
│   │   │   │   ├── rsa1_5.pub
│   │   │   │   ├── rsa1_6.pub
│   │   │   │   ├── rsa_1.pub
│   │   │   │   ├── rsa_2.pub
│   │   │   │   ├── rsa_3.pub
│   │   │   │   ├── rsa_4.pub
│   │   │   │   ├── rsa_5.pub
│   │   │   │   └── rsa_6.pub
│   │   │   ├── test_iterate.c
│   │   │   └── tests.c
│   │   ├── kex
│   │   │   ├── Makefile
│   │   │   ├── test_kex.c
│   │   │   └── tests.c
│   │   ├── Makefile
│   │   ├── Makefile.inc
│   │   ├── match
│   │   │   ├── Makefile
│   │   │   └── tests.c
│   │   ├── misc
│   │   │   ├── Makefile
│   │   │   ├── test_argv.c
│   │   │   ├── test_convtime.c
│   │   │   ├── test_expand.c
│   │   │   ├── test_hpdelim.c
│   │   │   ├── test_parse.c
│   │   │   ├── tests.c
│   │   │   └── test_strdelim.c
│   │   ├── sshbuf
│   │   │   ├── Makefile
│   │   │   ├── tests.c
│   │   │   ├── test_sshbuf.c
│   │   │   ├── test_sshbuf_fixed.c
│   │   │   ├── test_sshbuf_fuzz.c
│   │   │   ├── test_sshbuf_getput_basic.c
│   │   │   ├── test_sshbuf_getput_crypto.c
│   │   │   ├── test_sshbuf_getput_fuzz.c
│   │   │   └── test_sshbuf_misc.c
│   │   ├── sshkey
│   │   │   ├── common.c
│   │   │   ├── common.h
│   │   │   ├── Makefile
│   │   │   ├── mktestdata.sh
│   │   │   ├── testdata
│   │   │   │   ├── dsa_1
│   │   │   │   ├── dsa_1-cert.fp
│   │   │   │   ├── dsa_1-cert.pub
│   │   │   │   ├── dsa_1.fp
│   │   │   │   ├── dsa_1.fp.bb
│   │   │   │   ├── dsa_1.param.g
│   │   │   │   ├── dsa_1.param.priv
│   │   │   │   ├── dsa_1.param.pub
│   │   │   │   ├── dsa_1.pub
│   │   │   │   ├── dsa_1_pw
│   │   │   │   ├── dsa_2
│   │   │   │   ├── dsa_2.fp
│   │   │   │   ├── dsa_2.fp.bb
│   │   │   │   ├── dsa_2.pub
│   │   │   │   ├── dsa_n
│   │   │   │   ├── dsa_n_pw
│   │   │   │   ├── ecdsa_1
│   │   │   │   ├── ecdsa_1-cert.fp
│   │   │   │   ├── ecdsa_1-cert.pub
│   │   │   │   ├── ecdsa_1.fp
│   │   │   │   ├── ecdsa_1.fp.bb
│   │   │   │   ├── ecdsa_1.param.curve
│   │   │   │   ├── ecdsa_1.param.priv
│   │   │   │   ├── ecdsa_1.param.pub
│   │   │   │   ├── ecdsa_1.pub
│   │   │   │   ├── ecdsa_1_pw
│   │   │   │   ├── ecdsa_2
│   │   │   │   ├── ecdsa_2.fp
│   │   │   │   ├── ecdsa_2.fp.bb
│   │   │   │   ├── ecdsa_2.param.curve
│   │   │   │   ├── ecdsa_2.param.priv
│   │   │   │   ├── ecdsa_2.param.pub
│   │   │   │   ├── ecdsa_2.pub
│   │   │   │   ├── ecdsa_n
│   │   │   │   ├── ecdsa_n_pw
│   │   │   │   ├── ecdsa_sk1
│   │   │   │   ├── ecdsa_sk1-cert.fp
│   │   │   │   ├── ecdsa_sk1-cert.pub
│   │   │   │   ├── ecdsa_sk1.fp
│   │   │   │   ├── ecdsa_sk1.fp.bb
│   │   │   │   ├── ecdsa_sk1.pub
│   │   │   │   ├── ecdsa_sk1_pw
│   │   │   │   ├── ecdsa_sk2
│   │   │   │   ├── ecdsa_sk2.fp
│   │   │   │   ├── ecdsa_sk2.fp.bb
│   │   │   │   ├── ecdsa_sk2.pub
│   │   │   │   ├── ed25519_1
│   │   │   │   ├── ed25519_1-cert.fp
│   │   │   │   ├── ed25519_1-cert.pub
│   │   │   │   ├── ed25519_1.fp
│   │   │   │   ├── ed25519_1.fp.bb
│   │   │   │   ├── ed25519_1.pub
│   │   │   │   ├── ed25519_1_pw
│   │   │   │   ├── ed25519_2
│   │   │   │   ├── ed25519_2.fp
│   │   │   │   ├── ed25519_2.fp.bb
│   │   │   │   ├── ed25519_2.pub
│   │   │   │   ├── ed25519_sk1
│   │   │   │   ├── ed25519_sk1-cert.fp
│   │   │   │   ├── ed25519_sk1-cert.pub
│   │   │   │   ├── ed25519_sk1.fp
│   │   │   │   ├── ed25519_sk1.fp.bb
│   │   │   │   ├── ed25519_sk1.pub
│   │   │   │   ├── ed25519_sk1_pw
│   │   │   │   ├── ed25519_sk2
│   │   │   │   ├── ed25519_sk2.fp
│   │   │   │   ├── ed25519_sk2.fp.bb
│   │   │   │   ├── ed25519_sk2.pub
│   │   │   │   ├── pw
│   │   │   │   ├── rsa_1
│   │   │   │   ├── rsa_1-cert.fp
│   │   │   │   ├── rsa_1-cert.pub
│   │   │   │   ├── rsa_1.fp
│   │   │   │   ├── rsa_1.fp.bb
│   │   │   │   ├── rsa_1.param.n
│   │   │   │   ├── rsa_1.param.p
│   │   │   │   ├── rsa_1.param.q
│   │   │   │   ├── rsa_1.pub
│   │   │   │   ├── rsa_1_pw
│   │   │   │   ├── rsa_1_sha1
│   │   │   │   ├── rsa_1_sha1-cert.pub
│   │   │   │   ├── rsa_1_sha1.pub
│   │   │   │   ├── rsa_1_sha512
│   │   │   │   ├── rsa_1_sha512-cert.pub
│   │   │   │   ├── rsa_1_sha512.pub
│   │   │   │   ├── rsa_2
│   │   │   │   ├── rsa_2.fp
│   │   │   │   ├── rsa_2.fp.bb
│   │   │   │   ├── rsa_2.param.n
│   │   │   │   ├── rsa_2.param.p
│   │   │   │   ├── rsa_2.param.q
│   │   │   │   ├── rsa_2.pub
│   │   │   │   ├── rsa_n
│   │   │   │   └── rsa_n_pw
│   │   │   ├── test_file.c
│   │   │   ├── test_fuzz.c
│   │   │   ├── tests.c
│   │   │   └── test_sshkey.c
│   │   ├── sshsig
│   │   │   ├── Makefile
│   │   │   ├── mktestdata.sh
│   │   │   ├── testdata
│   │   │   │   ├── dsa
│   │   │   │   ├── dsa.pub
│   │   │   │   ├── dsa.sig
│   │   │   │   ├── ecdsa
│   │   │   │   ├── ecdsa.pub
│   │   │   │   ├── ecdsa.sig
│   │   │   │   ├── ecdsa_sk
│   │   │   │   ├── ecdsa_sk.pub
│   │   │   │   ├── ecdsa_sk.sig
│   │   │   │   ├── ecdsa_sk_webauthn.pub
│   │   │   │   ├── ecdsa_sk_webauthn.sig
│   │   │   │   ├── ed25519
│   │   │   │   ├── ed25519.pub
│   │   │   │   ├── ed25519.sig
│   │   │   │   ├── ed25519_sk
│   │   │   │   ├── ed25519_sk.pub
│   │   │   │   ├── ed25519_sk.sig
│   │   │   │   ├── namespace
│   │   │   │   ├── rsa
│   │   │   │   ├── rsa.pub
│   │   │   │   ├── rsa.sig
│   │   │   │   └── signed-data
│   │   │   ├── tests.c
│   │   │   └── webauthn.html
│   │   ├── test_helper
│   │   │   ├── fuzz.c
│   │   │   ├── Makefile
│   │   │   ├── test_helper.c
│   │   │   └── test_helper.h
│   │   └── utf8
│   │       ├── Makefile
│   │       └── tests.c
│   ├── valgrind-unit.sh
│   └── yes-head.sh
├── rijndael.c
├── rijndael.h
├── rijndael.o
├── sandbox-capsicum.c
├── sandbox-capsicum.o
├── sandbox-darwin.c
├── sandbox-darwin.o
├── sandbox-null.c
├── sandbox-null.o
├── sandbox-pledge.c
├── sandbox-pledge.o
├── sandbox-rlimit.c
├── sandbox-rlimit.o
├── sandbox-seccomp-filter.c
├── sandbox-seccomp-filter.o
├── sandbox-solaris.c
├── sandbox-solaris.o
├── sandbox-systrace.c
├── sandbox-systrace.o
├── sc25519.c
├── sc25519.h
├── sc25519.o
├── scp
├── scp.0
├── scp.1
├── scp.1.out
├── scp.c
├── scp.o
├── SECURITY.md
├── servconf.c
├── servconf.h
├── servconf.o
├── serverloop.c
├── serverloop.h
├── serverloop.o
├── session.c
├── session.h
├── session.o
├── sftp
├── sftp.0
├── sftp.1
├── sftp.1.out
├── sftp.c
├── sftp-client.c
├── sftp-client.h
├── sftp-client.o
├── sftp-common.c
├── sftp-common.h
├── sftp-common.o
├── sftp-glob.c
├── sftp-glob.o
├── sftp.h
├── sftp.o
├── sftp-realpath.c
├── sftp-realpath.o
├── sftp-server
├── sftp-server.0
├── sftp-server.8
├── sftp-server.8.out
├── sftp-server.c
├── sftp-server-main.c
├── sftp-server-main.o
├── sftp-server.o
├── sk-api.h
├── sk-usbhid.c
├── sk-usbhid.o
├── smult_curve25519_ref.c
├── smult_curve25519_ref.o
├── sntrup761.c
├── sntrup761.o
├── sntrup761.sh
├── srclimit.c
├── srclimit.h
├── srclimit.o
├── ssh
├── ssh.0
├── ssh.1
├── ssh.1.out
├── ssh2.h
├── ssh-add
├── ssh-add.0
├── ssh-add.1
├── ssh-add.1.out
├── ssh-add.c
├── ssh-add.o
├── ssh-agent
├── ssh-agent.0
├── ssh-agent.1
├── ssh-agent.1.out
├── ssh-agent.c
├── ssh-agent.o
├── ssh_api.c
├── ssh_api.h
├── ssh_api.o
├── sshbuf.c
├── sshbuf-getput-basic.c
├── sshbuf-getput-basic.o
├── sshbuf-getput-crypto.c
├── sshbuf-getput-crypto.o
├── sshbuf.h
├── sshbuf-io.c
├── sshbuf-io.o
├── sshbuf-misc.c
├── sshbuf-misc.o
├── sshbuf.o
├── ssh.c
├── ssh_config
├── ssh_config.0
├── ssh_config.5
├── ssh_config.5.out
├── ssh_config.out
├── sshconnect2.c
├── sshconnect2.o
├── sshconnect.c
├── sshconnect.h
├── sshconnect.o
├── sshd
├── sshd.0
├── sshd.8
├── sshd.8.out
├── sshd.c
├── sshd_config
├── sshd_config.0
├── sshd_config.5
├── sshd_config.5.out
├── sshd_config.out
├── sshd.o
├── ssh-dss.c
├── ssh-dss.o
├── ssh-ecdsa.c
├── ssh-ecdsa.o
├── ssh-ecdsa-sk.c
├── ssh-ecdsa-sk.o
├── ssh-ed25519.c
├── ssh-ed25519.o
├── ssh-ed25519-sk.c
├── ssh-ed25519-sk.o
├── ssherr.c
├── ssherr.h
├── ssherr.o
├── ssh-gss.h
├── ssh.h
├── sshkey.c
├── ssh-keygen
├── ssh-keygen.0
├── ssh-keygen.1
├── ssh-keygen.1.out
├── ssh-keygen.c
├── ssh-keygen.o
├── sshkey.h
├── sshkey.o
├── ssh-keyscan
├── ssh-keyscan.0
├── ssh-keyscan.1
├── ssh-keyscan.1.out
├── ssh-keyscan.c
├── ssh-keyscan.o
├── ssh-keysign
├── ssh-keysign.0
├── ssh-keysign.8
├── ssh-keysign.8.out
├── ssh-keysign.c
├── ssh-keysign.o
├── sshkey-xmss.c
├── sshkey-xmss.h
├── sshkey-xmss.o
├── sshlogin.c
├── sshlogin.h
├── sshlogin.o
├── ssh.o
├── ssh-pkcs11.c
├── ssh-pkcs11-client.c
├── ssh-pkcs11-client.o
├── ssh-pkcs11.h
├── ssh-pkcs11-helper
├── ssh-pkcs11-helper.0
├── ssh-pkcs11-helper.8
├── ssh-pkcs11-helper.8.out
├── ssh-pkcs11-helper.c
├── ssh-pkcs11-helper.o
├── ssh-pkcs11.o
├── sshpty.c
├── sshpty.h
├── sshpty.o
├── ssh-rsa.c
├── ssh-rsa.o
├── ssh-sandbox.h
├── sshsig.c
├── sshsig.h
├── sshsig.o
├── ssh-sk.c
├── ssh-sk-client.c
├── ssh-sk-client.o
├── ssh-sk.h
├── ssh-sk-helper
├── ssh-sk-helper.0
├── ssh-sk-helper.8
├── ssh-sk-helper.8.out
├── ssh-sk-helper.c
├── ssh-sk-helper.o
├── ssh-sk.o
├── sshtty.c
├── sshtty.o
├── ssh-xmss.c
├── ssh-xmss.o
├── survey.sh
├── survey.sh.in
├── TODO
├── ttymodes.c
├── ttymodes.h
├── ttymodes.o
├── uidswap.c
├── uidswap.h
├── uidswap.o
├── umac128.c
├── umac128.o
├── umac.c
├── umac.h
├── umac.o
├── utf8.c
├── utf8.h
├── utf8.o
├── verify.c
├── verify.o
├── version.h
├── x11-ssh-askpass-1.2.4.1
│   ├── ChangeLog
│   ├── configure
│   ├── drawing.c
│   ├── drawing.h
│   ├── drawing.o
│   ├── dynlist.c
│   ├── dynlist.h
│   ├── dynlist.o
│   ├── Imakefile
│   ├── Imakefile.in
│   ├── Makefile
│   ├── Makefile.bak
│   ├── README
│   ├── resources.c
│   ├── resources.h
│   ├── resources.o
│   ├── SshAskpass-1337.ad
│   ├── SshAskpass.ad -> SshAskpass-default.ad
│   ├── SshAskpass_ad.h
│   ├── SshAskpass-default.ad
│   ├── SshAskpass-green.ad
│   ├── SshAskpass-motif.ad
│   ├── SshAskpass-NeXTish.ad
│   ├── TODO
│   ├── x11-ssh-askpass
│   ├── x11-ssh-askpass.c
│   ├── x11-ssh-askpass.h
│   ├── x11-ssh-askpass._man -> x11-ssh-askpass.man
│   ├── x11-ssh-askpass.man
│   ├── x11-ssh-askpass.man.in
│   └── x11-ssh-askpass.o
├── xmalloc.c
├── xmalloc.h
├── xmalloc.o
├── xmss_commons.c
├── xmss_commons.h
├── xmss_commons.o
├── xmss_fast.c
├── xmss_fast.h
├── xmss_fast.o
├── xmss_hash_address.c
├── xmss_hash_address.h
├── xmss_hash_address.o
├── xmss_hash.c
├── xmss_hash.h
├── xmss_hash.o
├── xmss_wots.c
├── xmss_wots.h
└── xmss_wots.o

33 directories, 1162 files
#rpm 搜索下载网站

https://pkgs.org/
http://rpmfind.net
http://rpm.pbone.net/

后续的升级安装配置,请参考前面的博客,这里不再赘述。总的来说,redhat9.0 和rhel 8 版本使用上区别不大,很多地方都差不多。

openssh9.0p1-el9.tgz-Linux文档类资源-CSDN下载

openssh-9.0p1-1.el9.src.rpm-Linux文档类资源-CSDN下载

猜你喜欢

转载自blog.csdn.net/qq_34777982/article/details/125011824