当前位置:   article > 正文

CentOS 7 基于官方源码和openssl制作openssh 9.6 rpm包(含ssh-copy-id) —— 筑梦之路_openssh9.6

openssh9.6

之前写了一篇:

CentOS 7 制作openssh 9.6 rpm包更新修复安全漏洞 —— 筑梦之路_升级openssh9.6-CSDN博客

有好几个网友反馈,ssh-keygen生成密钥存在问题,之前的rsa \ dsa加密算法用不了,因此写了一篇:

关于openssh 9.6 p1 版本ssh-keygen -t rsa报错解决—— 筑梦之路_openssh 9.5有安全问题吗-CSDN博客

又有网友反馈,9.6版本安装后查看ssh -V 跟之前不一样,没显示openssl版本信息了,因此这里来解决这个问题,制作能在centos 7 下基于官方源码制作安装显示openssl版本的信息的rpm包,另一种方法是可阅读这篇:

CentOS 5/6/7 基于开源项目制作openssh 9.6p1 rpm包—— 筑梦之路_centos6 openssh9.6rpm-CSDN博客

关于openssl的问题可以阅读这篇:

CentOS 7 源码制作openssh 9.4p1/9.5p1 rpm包 —— 筑梦之路_openssh9.5-CSDN博客

spec文件内容如下:

  1. %global ver 9.6p1
  2. %global rel 1%{?dist}
  3. # OpenSSH privilege separation requires a user & group ID
  4. %global sshd_uid 74
  5. %global sshd_gid 74
  6. # Version of ssh-askpass
  7. %global aversion 1.2.4.1
  8. # Do we want to disable building of x11-askpass? (1=yes 0=no)
  9. %global no_x11_askpass 0
  10. # Do we want to disable building of gnome-askpass? (1=yes 0=no)
  11. %global no_gnome_askpass 0
  12. # Do we want to link against a static libcrypto? (1=yes 0=no)
  13. %global static_libcrypto 0
  14. # Do we want smartcard support (1=yes 0=no)
  15. %global scard 0
  16. # Use GTK2 instead of GNOME in gnome-ssh-askpass
  17. %global gtk2 1
  18. # Use build6x options for older RHEL builds
  19. # RHEL 7 not yet supported
  20. %if 0%{?rhel} > 6
  21. %global build6x 0
  22. %else
  23. %global build6x 1
  24. %endif
  25. #%global without_openssl 0
  26. # build without openssl where 1.1.1 is not available
  27. %if 0%{?fedora} <= 28
  28. %global without_openssl 1
  29. %endif
  30. %if 0%{?rhel} <= 7
  31. %global without_openssl 1
  32. %endif
  33. # Do we want kerberos5 support (1=yes 0=no)
  34. %global kerberos5 1
  35. # Reserve options to override askpass settings with:
  36. # rpm -ba|--rebuild --define 'skip_xxx 1'
  37. %{?skip_x11_askpass:%global no_x11_askpass 1}
  38. %{?skip_gnome_askpass:%global no_gnome_askpass 1}
  39. # Add option to build without GTK2 for older platforms with only GTK+.
  40. # RedHat <= 7.2 and Red Hat Advanced Server 2.1 are examples.
  41. # rpm -ba|--rebuild --define 'no_gtk2 1'
  42. %{?no_gtk2:%global gtk2 0}
  43. # Is this a build for RHL 6.x or earlier?
  44. %{?build_6x:%global build6x 1}
  45. # If this is RHL 6.x, the default configuration has sysconfdir in /usr/etc.
  46. %if %{build6x}
  47. %global _sysconfdir /etc
  48. %endif
  49. # Options for static OpenSSL link:
  50. # rpm -ba|--rebuild --define "static_openssl 1"
  51. %{?static_openssl:%global static_libcrypto 1}
  52. # Options for Smartcard support: (needs libsectok and openssl-engine)
  53. # rpm -ba|--rebuild --define "smartcard 1"
  54. %{?smartcard:%global scard 1}
  55. # Is this a build for the rescue CD (without PAM)? (1=yes 0=no)
  56. %global rescue 0
  57. %{?build_rescue:%global rescue 1}
  58. # Turn off some stuff for resuce builds
  59. %if %{rescue}
  60. %global kerberos5 0
  61. %endif
  62. Summary: The OpenSSH implementation of SSH protocol version 2.
  63. Name: openssh
  64. Version: %{ver}
  65. %if %{rescue}
  66. Release: %{rel}rescue
  67. %else
  68. Release: %{rel}
  69. %endif
  70. URL: https://www.openssh.com/portable.html
  71. Source0: https://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable/openssh-%{version}.tar.gz
  72. Source1: http://www.jmknoble.net/software/x11-ssh-askpass/x11-ssh-askpass-%{aversion}.tar.gz
  73. License: BSD
  74. Group: Applications/Internet
  75. BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot
  76. Obsoletes: ssh
  77. %if %{build6x}
  78. PreReq: initscripts >= 5.00
  79. %else
  80. Requires: initscripts >= 5.20
  81. %endif
  82. BuildRequires: perl
  83. #%if ! %{without_openssl}
  84. #BuildRequires: openssl-devel >= 1.1.1
  85. #%endif
  86. BuildRequires: /bin/login
  87. %if ! %{build6x}
  88. BuildRequires: glibc-devel, pam
  89. %else
  90. BuildRequires: /usr/include/security/pam_appl.h
  91. %endif
  92. %if ! %{no_x11_askpass}
  93. BuildRequires: /usr/include/X11/Xlib.h
  94. # Xt development tools
  95. BuildRequires: libXt-devel
  96. # Provides xmkmf
  97. BuildRequires: imake
  98. # Rely on relatively recent gtk
  99. BuildRequires: gtk2-devel
  100. %endif
  101. %if ! %{no_gnome_askpass}
  102. BuildRequires: pkgconfig
  103. %endif
  104. %if %{kerberos5}
  105. BuildRequires: krb5-devel
  106. BuildRequires: krb5-libs
  107. %endif
  108. %package clients
  109. Summary: OpenSSH clients.
  110. Requires: openssh = %{version}-%{release}
  111. Group: Applications/Internet
  112. Obsoletes: ssh-clients
  113. %package server
  114. Summary: The OpenSSH server daemon.
  115. Group: System Environment/Daemons
  116. Obsoletes: ssh-server
  117. Requires: openssh = %{version}-%{release}, chkconfig >= 0.9
  118. %if ! %{build6x}
  119. Requires: /etc/pam.d/system-auth
  120. %endif
  121. %package askpass
  122. Summary: A passphrase dialog for OpenSSH and X.
  123. Group: Applications/Internet
  124. Requires: openssh = %{version}-%{release}
  125. Obsoletes: ssh-extras
  126. %package askpass-gnome
  127. Summary: A passphrase dialog for OpenSSH, X, and GNOME.
  128. Group: Applications/Internet
  129. Requires: openssh = %{version}-%{release}
  130. Obsoletes: ssh-extras
  131. %description
  132. SSH (Secure SHell) is a program for logging into and executing
  133. commands on a remote machine. SSH is intended to replace rlogin and
  134. rsh, and to provide secure encrypted communications between two
  135. untrusted hosts over an insecure network. X11 connections and
  136. arbitrary TCP/IP ports can also be forwarded over the secure channel.
  137. OpenSSH is OpenBSD's version of the last free version of SSH, bringing
  138. it up to date in terms of security and features, as well as removing
  139. all patented algorithms to separate libraries.
  140. This package includes the core files necessary for both the OpenSSH
  141. client and server. To make this package useful, you should also
  142. install openssh-clients, openssh-server, or both.
  143. %description clients
  144. OpenSSH is a free version of SSH (Secure SHell), a program for logging
  145. into and executing commands on a remote machine. This package includes
  146. the clients necessary to make encrypted connections to SSH servers.
  147. You'll also need to install the openssh package on OpenSSH clients.
  148. %description server
  149. OpenSSH is a free version of SSH (Secure SHell), a program for logging
  150. into and executing commands on a remote machine. This package contains
  151. the secure shell daemon (sshd). The sshd daemon allows SSH clients to
  152. securely connect to your SSH server. You also need to have the openssh
  153. package installed.
  154. %description askpass
  155. OpenSSH is a free version of SSH (Secure SHell), a program for logging
  156. into and executing commands on a remote machine. This package contains
  157. an X11 passphrase dialog for OpenSSH.
  158. %description askpass-gnome
  159. OpenSSH is a free version of SSH (Secure SHell), a program for logging
  160. into and executing commands on a remote machine. This package contains
  161. an X11 passphrase dialog for OpenSSH and the GNOME GUI desktop
  162. environment.
  163. %prep
  164. %if ! %{no_x11_askpass}
  165. %setup -q -a 1
  166. %else
  167. %setup -q
  168. %endif
  169. %build
  170. %if %{rescue}
  171. CFLAGS="$RPM_OPT_FLAGS -Os"; export CFLAGS
  172. %endif
  173. %configure \
  174. --sysconfdir=%{_sysconfdir}/ssh \
  175. --libexecdir=%{_libexecdir}/openssh \
  176. --datadir=%{_datadir}/openssh \
  177. --with-default-path=/usr/local/bin:/bin:/usr/bin \
  178. --with-superuser-path=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin \
  179. --with-privsep-path=%{_var}/empty/sshd \
  180. --with-openssl-includes=/usr/local/openssl/include \
  181. --with-ssl-dir=/usr/local/openssl \
  182. --mandir=%{_mandir} \
  183. --with-mantype=man \
  184. --disable-strip \
  185. %if %{scard}
  186. --with-smartcard \
  187. %endif
  188. %if %{rescue}
  189. --without-pam \
  190. %else
  191. --with-pam \
  192. %endif
  193. %if %{kerberos5}
  194. --with-kerberos5=$K5DIR \
  195. %endif
  196. %if %{static_libcrypto}
  197. perl -pi -e "s|-lcrypto|%{_libdir}/libcrypto.a|g" Makefile
  198. %endif
  199. make
  200. %if ! %{no_x11_askpass}
  201. pushd x11-ssh-askpass-%{aversion}
  202. %configure --libexecdir=%{_libexecdir}/openssh
  203. xmkmf -a
  204. make
  205. popd
  206. %endif
  207. # Define a variable to toggle gnome1/gtk2 building. This is necessary
  208. # because RPM doesn't handle nested %if statements.
  209. %if %{gtk2}
  210. gtk2=yes
  211. %else
  212. gtk2=no
  213. %endif
  214. %if ! %{no_gnome_askpass}
  215. pushd contrib
  216. if [ $gtk2 = yes ] ; then
  217. make gnome-ssh-askpass2
  218. mv gnome-ssh-askpass2 gnome-ssh-askpass
  219. else
  220. make gnome-ssh-askpass1
  221. mv gnome-ssh-askpass1 gnome-ssh-askpass
  222. fi
  223. popd
  224. %endif
  225. %install
  226. rm -rf $RPM_BUILD_ROOT
  227. mkdir -p -m755 $RPM_BUILD_ROOT%{_sysconfdir}/ssh
  228. mkdir -p -m755 $RPM_BUILD_ROOT%{_libexecdir}/openssh
  229. mkdir -p -m755 $RPM_BUILD_ROOT%{_var}/empty/sshd
  230. make install DESTDIR=$RPM_BUILD_ROOT
  231. install -d $RPM_BUILD_ROOT/etc/pam.d/
  232. install -d $RPM_BUILD_ROOT/etc/rc.d/init.d
  233. install -d $RPM_BUILD_ROOT%{_libexecdir}/openssh
  234. install -m644 contrib/redhat/sshd.pam $RPM_BUILD_ROOT/etc/pam.d/sshd
  235. install -m755 contrib/redhat/sshd.init $RPM_BUILD_ROOT/etc/rc.d/init.d/sshd
  236. install -m755 contrib/ssh-copy-id $RPM_BUILD_ROOT/usr/bin/ssh-copy-id
  237. %if ! %{no_x11_askpass}
  238. install x11-ssh-askpass-%{aversion}/x11-ssh-askpass $RPM_BUILD_ROOT%{_libexecdir}/openssh/x11-ssh-askpass
  239. ln -s x11-ssh-askpass $RPM_BUILD_ROOT%{_libexecdir}/openssh/ssh-askpass
  240. %endif
  241. %if ! %{no_gnome_askpass}
  242. install contrib/gnome-ssh-askpass $RPM_BUILD_ROOT%{_libexecdir}/openssh/gnome-ssh-askpass
  243. %endif
  244. %if ! %{scard}
  245. rm -f $RPM_BUILD_ROOT/usr/share/openssh/Ssh.bin
  246. %endif
  247. %if ! %{no_gnome_askpass}
  248. install -m 755 -d $RPM_BUILD_ROOT%{_sysconfdir}/profile.d/
  249. install -m 755 contrib/redhat/gnome-ssh-askpass.csh $RPM_BUILD_ROOT%{_sysconfdir}/profile.d/
  250. install -m 755 contrib/redhat/gnome-ssh-askpass.sh $RPM_BUILD_ROOT%{_sysconfdir}/profile.d/
  251. %endif
  252. perl -pi -e "s|$RPM_BUILD_ROOT||g" $RPM_BUILD_ROOT%{_mandir}/man*/*
  253. %clean
  254. rm -rf $RPM_BUILD_ROOT
  255. %triggerun server -- ssh-server
  256. if [ "$1" != 0 -a -r /var/run/sshd.pid ] ; then
  257. touch /var/run/sshd.restart
  258. fi
  259. %triggerun server -- openssh-server < 2.5.0p1
  260. # Count the number of HostKey and HostDsaKey statements we have.
  261. gawk 'BEGIN {IGNORECASE=1}
  262. /^hostkey/ || /^hostdsakey/ {sawhostkey = sawhostkey + 1}
  263. END {exit sawhostkey}' /etc/ssh/sshd_config
  264. # And if we only found one, we know the client was relying on the old default
  265. # behavior, which loaded the the SSH2 DSA host key when HostDsaKey wasn't
  266. # specified. Now that HostKey is used for both SSH1 and SSH2 keys, specifying
  267. # one nullifies the default, which would have loaded both.
  268. if [ $? -eq 1 ] ; then
  269. echo HostKey /etc/ssh/ssh_host_rsa_key >> /etc/ssh/sshd_config
  270. echo HostKey /etc/ssh/ssh_host_dsa_key >> /etc/ssh/sshd_config
  271. fi
  272. %triggerpostun server -- ssh-server
  273. if [ "$1" != 0 ] ; then
  274. /sbin/chkconfig --add sshd
  275. if test -f /var/run/sshd.restart ; then
  276. rm -f /var/run/sshd.restart
  277. /sbin/service sshd start > /dev/null 2>&1 || :
  278. fi
  279. fi
  280. %pre server
  281. %{_sbindir}/groupadd -r -g %{sshd_gid} sshd 2>/dev/null || :
  282. %{_sbindir}/useradd -d /var/empty/sshd -s /bin/false -u %{sshd_uid} \
  283. -g sshd -M -r sshd 2>/dev/null || :
  284. %post server
  285. /sbin/chkconfig --add sshd
  286. %postun server
  287. /sbin/service sshd condrestart > /dev/null 2>&1 || :
  288. %preun server
  289. if [ "$1" = 0 ]
  290. then
  291. /sbin/service sshd stop > /dev/null 2>&1 || :
  292. /sbin/chkconfig --del sshd
  293. fi
  294. %files
  295. %defattr(-,root,root)
  296. %doc CREDITS ChangeLog INSTALL LICENCE OVERVIEW README* PROTOCOL* TODO
  297. %attr(0755,root,root) %{_bindir}/scp
  298. %attr(0644,root,root) %{_mandir}/man1/scp.1*
  299. %attr(0755,root,root) %dir %{_sysconfdir}/ssh
  300. %attr(0600,root,root) %config(noreplace) %{_sysconfdir}/ssh/moduli
  301. %if ! %{rescue}
  302. %attr(0755,root,root) %{_bindir}/ssh-keygen
  303. %attr(0644,root,root) %{_mandir}/man1/ssh-keygen.1*
  304. %attr(0755,root,root) %dir %{_libexecdir}/openssh
  305. %attr(0755,root,root) %{_bindir}/ssh-copy-id
  306. %attr(4711,root,root) %{_libexecdir}/openssh/ssh-keysign
  307. %attr(0755,root,root) %{_libexecdir}/openssh/ssh-pkcs11-helper
  308. %attr(0755,root,root) %{_libexecdir}/openssh/ssh-sk-helper
  309. %attr(0644,root,root) %{_mandir}/man8/ssh-keysign.8*
  310. %attr(0644,root,root) %{_mandir}/man8/ssh-pkcs11-helper.8*
  311. %attr(0644,root,root) %{_mandir}/man8/ssh-sk-helper.8*
  312. %endif
  313. %if %{scard}
  314. %attr(0755,root,root) %dir %{_datadir}/openssh
  315. %attr(0644,root,root) %{_datadir}/openssh/Ssh.bin
  316. %endif
  317. %files clients
  318. %defattr(-,root,root)
  319. %attr(0755,root,root) %{_bindir}/ssh
  320. %attr(0644,root,root) %{_mandir}/man1/ssh.1*
  321. %attr(0644,root,root) %{_mandir}/man5/ssh_config.5*
  322. %attr(0644,root,root) %config(noreplace) %{_sysconfdir}/ssh/ssh_config
  323. %if ! %{rescue}
  324. %attr(2755,root,nobody) %{_bindir}/ssh-agent
  325. %attr(0755,root,root) %{_bindir}/ssh-add
  326. %attr(0755,root,root) %{_bindir}/ssh-keyscan
  327. %attr(0755,root,root) %{_bindir}/sftp
  328. %attr(0644,root,root) %{_mandir}/man1/ssh-agent.1*
  329. %attr(0644,root,root) %{_mandir}/man1/ssh-add.1*
  330. %attr(0644,root,root) %{_mandir}/man1/ssh-keyscan.1*
  331. %attr(0644,root,root) %{_mandir}/man1/sftp.1*
  332. %endif
  333. %if ! %{rescue}
  334. %files server
  335. %defattr(-,root,root)
  336. %dir %attr(0111,root,root) %{_var}/empty/sshd
  337. %attr(0755,root,root) %{_sbindir}/sshd
  338. %attr(0755,root,root) %{_libexecdir}/openssh/sftp-server
  339. %attr(0644,root,root) %{_mandir}/man8/sshd.8*
  340. %attr(0644,root,root) %{_mandir}/man5/moduli.5*
  341. %attr(0644,root,root) %{_mandir}/man5/sshd_config.5*
  342. %attr(0644,root,root) %{_mandir}/man8/sftp-server.8*
  343. %attr(0755,root,root) %dir %{_sysconfdir}/ssh
  344. %attr(0600,root,root) %config(noreplace) %{_sysconfdir}/ssh/sshd_config
  345. %attr(0600,root,root) %config(noreplace) /etc/pam.d/sshd
  346. %attr(0755,root,root) %config /etc/rc.d/init.d/sshd
  347. %endif
  348. %if ! %{no_x11_askpass}
  349. %files askpass
  350. %defattr(-,root,root)
  351. %doc x11-ssh-askpass-%{aversion}/README
  352. %doc x11-ssh-askpass-%{aversion}/ChangeLog
  353. %doc x11-ssh-askpass-%{aversion}/SshAskpass*.ad
  354. %{_libexecdir}/openssh/ssh-askpass
  355. %attr(0755,root,root) %{_libexecdir}/openssh/x11-ssh-askpass
  356. %endif
  357. %if ! %{no_gnome_askpass}
  358. %files askpass-gnome
  359. %defattr(-,root,root)
  360. %attr(0755,root,root) %config %{_sysconfdir}/profile.d/gnome-ssh-askpass.*
  361. %attr(0755,root,root) %{_libexecdir}/openssh/gnome-ssh-askpass
  362. %endif
  363. %changelog
  364. * Mon Oct 16 2023 Fabio Pedretti <pedretti.fabio@gmail.com>
  365. - Remove reference of dropped sshd.pam.old file
  366. - Update openssl-devel dependency to require >= 1.1.1
  367. - Build with --without-openssl elsewhere
  368. * Thu Oct 28 2021 Damien Miller <djm@mindrot.org>
  369. - Remove remaining traces of --with-md5-passwords
  370. * Mon Jul 20 2020 Damien Miller <djm@mindrot.org>
  371. - Add ssh-sk-helper and corresponding manual page.
  372. * Sat Feb 10 2018 Darren Tucker <dtucker@dtucker.net>
  373. - Update openssl-devel dependency to match current requirements.
  374. - Handle Fedora >=6 openssl 1.0 compat libs.
  375. - Remove SSH1 from description.
  376. - Don't strip binaries at build time so that debuginfo package can be
  377. created.
  378. * Sun Nov 16 2014 Nico Kadel-Garcia <nakdel@gmail.com>
  379. - Add '--mandir' and '--with-mantype' for RHEL 5 compatibility
  380. - Add 'dist' option to 'ver' so package names reflect OS at build time
  381. - Always include x11-ssh-askpass tarball in SRPM
  382. - Add openssh-x11-aspass BuildRequires for libXT-devel, imake, gtk2-devel
  383. - Discard 'K5DIR' reporting, not usable inside 'mock' for RHEL 5 compatibility
  384. - Discard obsolete '--with-rsh' configure option
  385. - Update openssl-devel dependency to 0.9.8f, as found in autoconf
  386. * Wed Jul 14 2010 Tim Rice <tim@multitalents.net>
  387. - test for skip_x11_askpass (line 77) should have been for no_x11_askpass
  388. * Mon Jun 2 2003 Damien Miller <djm@mindrot.org>
  389. - Remove noip6 option. This may be controlled at run-time in client config
  390. file using new AddressFamily directive
  391. * Mon May 12 2003 Damien Miller <djm@mindrot.org>
  392. - Don't install profile.d scripts when not building with GNOME/GTK askpass
  393. (patch from bet@rahul.net)
  394. * Tue Oct 01 2002 Damien Miller <djm@mindrot.org>
  395. - Install ssh-agent setgid nobody to prevent ptrace() key theft attacks
  396. * Mon Sep 30 2002 Damien Miller <djm@mindrot.org>
  397. - Use contrib/ Makefile for building askpass programs
  398. * Fri Jun 21 2002 Damien Miller <djm@mindrot.org>
  399. - Merge in spec changes from seba@iq.pl (Sebastian Pachuta)
  400. - Add new {ssh,sshd}_config.5 manpages
  401. - Add new ssh-keysign program and remove setuid from ssh client
  402. * Fri May 10 2002 Damien Miller <djm@mindrot.org>
  403. - Merge in spec changes from RedHat, reorgansie a little
  404. - Add Privsep user, group and directory
  405. * Thu Mar 7 2002 Nalin Dahyabhai <nalin@redhat.com> 3.1p1-2
  406. - bump and grind (through the build system)
  407. * Thu Mar 7 2002 Nalin Dahyabhai <nalin@redhat.com> 3.1p1-1
  408. - require sharutils for building (mindrot #137)
  409. - require db1-devel only when building for 6.x (#55105), which probably won't
  410. work anyway (3.1 requires OpenSSL 0.9.6 to build), but what the heck
  411. - require pam-devel by file (not by package name) again
  412. - add Markus's patch to compile with OpenSSL 0.9.5a (from
  413. http://bugzilla.mindrot.org/show_bug.cgi?id=141) and apply it if we're
  414. building for 6.x
  415. * Thu Mar 7 2002 Nalin Dahyabhai <nalin@redhat.com> 3.1p1-0
  416. - update to 3.1p1
  417. * Tue Mar 5 2002 Nalin Dahyabhai <nalin@redhat.com> SNAP-20020305
  418. - update to SNAP-20020305
  419. - drop debug patch, fixed upstream
  420. * Wed Feb 20 2002 Nalin Dahyabhai <nalin@redhat.com> SNAP-20020220
  421. - update to SNAP-20020220 for testing purposes (you've been warned, if there's
  422. anything to be warned about, gss patches won't apply, I don't mind)
  423. * Wed Feb 13 2002 Nalin Dahyabhai <nalin@redhat.com> 3.0.2p1-3
  424. - add patches from Simon Wilkinson and Nicolas Williams for GSSAPI key
  425. exchange, authentication, and named key support
  426. * Wed Jan 23 2002 Nalin Dahyabhai <nalin@redhat.com> 3.0.2p1-2
  427. - remove dependency on db1-devel, which has just been swallowed up whole
  428. by gnome-libs-devel
  429. * Sat Dec 29 2001 Nalin Dahyabhai <nalin@redhat.com>
  430. - adjust build dependencies so that build6x actually works right (fix
  431. from Hugo van der Kooij)
  432. * Tue Dec 4 2001 Nalin Dahyabhai <nalin@redhat.com> 3.0.2p1-1
  433. - update to 3.0.2p1
  434. * Fri Nov 16 2001 Nalin Dahyabhai <nalin@redhat.com> 3.0.1p1-1
  435. - update to 3.0.1p1
  436. * Tue Nov 13 2001 Nalin Dahyabhai <nalin@redhat.com>
  437. - update to current CVS (not for use in distribution)
  438. * Thu Nov 8 2001 Nalin Dahyabhai <nalin@redhat.com> 3.0p1-1
  439. - merge some of Damien Miller <djm@mindrot.org> changes from the upstream
  440. 3.0p1 spec file and init script
  441. * Wed Nov 7 2001 Nalin Dahyabhai <nalin@redhat.com>
  442. - update to 3.0p1
  443. - update to x11-ssh-askpass 1.2.4.1
  444. - change build dependency on a file from pam-devel to the pam-devel package
  445. - replace primes with moduli
  446. * Thu Sep 27 2001 Nalin Dahyabhai <nalin@redhat.com> 2.9p2-9
  447. - incorporate fix from Markus Friedl's advisory for IP-based authorization bugs
  448. * Thu Sep 13 2001 Bernhard Rosenkraenzer <bero@redhat.com> 2.9p2-8
  449. - Merge changes to rescue build from current sysadmin survival cd
  450. * Thu Sep 6 2001 Nalin Dahyabhai <nalin@redhat.com> 2.9p2-7
  451. - fix scp's server's reporting of file sizes, and build with the proper
  452. preprocessor define to get large-file capable open(), stat(), etc.
  453. (sftp has been doing this correctly all along) (#51827)
  454. - configure without --with-ipv4-default on RHL 7.x and newer (#45987,#52247)
  455. - pull cvs patch to fix support for /etc/nologin for non-PAM logins (#47298)
  456. - mark profile.d scriptlets as config files (#42337)
  457. - refer to Jason Stone's mail for zsh workaround for exit-hanging quasi-bug
  458. - change a couple of log() statements to debug() statements (#50751)
  459. - pull cvs patch to add -t flag to sshd (#28611)
  460. - clear fd_sets correctly (one bit per FD, not one byte per FD) (#43221)
  461. * Mon Aug 20 2001 Nalin Dahyabhai <nalin@redhat.com> 2.9p2-6
  462. - add db1-devel as a BuildPrerequisite (noted by Hans Ecke)
  463. * Thu Aug 16 2001 Nalin Dahyabhai <nalin@redhat.com>
  464. - pull cvs patch to fix remote port forwarding with protocol 2
  465. * Thu Aug 9 2001 Nalin Dahyabhai <nalin@redhat.com>
  466. - pull cvs patch to add session initialization to no-pty sessions
  467. - pull cvs patch to not cut off challengeresponse auth needlessly
  468. - refuse to do X11 forwarding if xauth isn't there, handy if you enable
  469. it by default on a system that doesn't have X installed (#49263)
  470. * Wed Aug 8 2001 Nalin Dahyabhai <nalin@redhat.com>
  471. - don't apply patches to code we don't intend to build (spotted by Matt Galgoci)
  472. * Mon Aug 6 2001 Nalin Dahyabhai <nalin@redhat.com>
  473. - pass OPTIONS correctly to initlog (#50151)
  474. * Wed Jul 25 2001 Nalin Dahyabhai <nalin@redhat.com>
  475. - switch to x11-ssh-askpass 1.2.2
  476. * Wed Jul 11 2001 Nalin Dahyabhai <nalin@redhat.com>
  477. - rebuild in new environment
  478. * Mon Jun 25 2001 Nalin Dahyabhai <nalin@redhat.com>
  479. - disable the gssapi patch
  480. * Mon Jun 18 2001 Nalin Dahyabhai <nalin@redhat.com>
  481. - update to 2.9p2
  482. - refresh to a new version of the gssapi patch
  483. * Thu Jun 7 2001 Nalin Dahyabhai <nalin@redhat.com>
  484. - change Copyright: BSD to License: BSD
  485. - add Markus Friedl's unverified patch for the cookie file deletion problem
  486. so that we can verify it
  487. - drop patch to check if xauth is present (was folded into cookie patch)
  488. - don't apply gssapi patches for the errata candidate
  489. - clear supplemental groups list at startup
  490. * Fri May 25 2001 Nalin Dahyabhai <nalin@redhat.com>
  491. - fix an error parsing the new default sshd_config
  492. - add a fix from Markus Friedl (via openssh-unix-dev) for ssh-keygen not
  493. dealing with comments right
  494. * Thu May 24 2001 Nalin Dahyabhai <nalin@redhat.com>
  495. - add in Simon Wilkinson's GSSAPI patch to give it some testing in-house,
  496. to be removed before the next beta cycle because it's a big departure
  497. from the upstream version
  498. * Thu May 3 2001 Nalin Dahyabhai <nalin@redhat.com>
  499. - finish marking strings in the init script for translation
  500. - modify init script to source /etc/sysconfig/sshd and pass $OPTIONS to sshd
  501. at startup (change merged from openssh.com init script, originally by
  502. Pekka Savola)
  503. - refuse to do X11 forwarding if xauth isn't there, handy if you enable
  504. it by default on a system that doesn't have X installed
  505. * Wed May 2 2001 Nalin Dahyabhai <nalin@redhat.com>
  506. - update to 2.9
  507. - drop various patches that came from or went upstream or to or from CVS
  508. * Wed Apr 18 2001 Nalin Dahyabhai <nalin@redhat.com>
  509. - only require initscripts 5.00 on 6.2 (reported by Peter Bieringer)
  510. * Sun Apr 8 2001 Preston Brown <pbrown@redhat.com>
  511. - remove explicit openssl requirement, fixes builddistro issue
  512. - make initscript stop() function wait until sshd really dead to avoid
  513. races in condrestart
  514. * Mon Apr 2 2001 Nalin Dahyabhai <nalin@redhat.com>
  515. - mention that challengereponse supports PAM, so disabling password doesn't
  516. limit users to pubkey and rsa auth (#34378)
  517. - bypass the daemon() function in the init script and call initlog directly,
  518. because daemon() won't start a daemon it detects is already running (like
  519. open connections)
  520. - require the version of openssl we had when we were built
  521. * Fri Mar 23 2001 Nalin Dahyabhai <nalin@redhat.com>
  522. - make do_pam_setcred() smart enough to know when to establish creds and
  523. when to reinitialize them
  524. - add in a couple of other fixes from Damien for inclusion in the errata
  525. * Thu Mar 22 2001 Nalin Dahyabhai <nalin@redhat.com>
  526. - update to 2.5.2p2
  527. - call setcred() again after initgroups, because the "creds" could actually
  528. be group memberships
  529. * Tue Mar 20 2001 Nalin Dahyabhai <nalin@redhat.com>
  530. - update to 2.5.2p1 (includes endianness fixes in the rijndael implementation)
  531. - don't enable challenge-response by default until we find a way to not
  532. have too many userauth requests (we may make up to six pubkey and up to
  533. three password attempts as it is)
  534. - remove build dependency on rsh to match openssh.com's packages more closely
  535. * Sat Mar 3 2001 Nalin Dahyabhai <nalin@redhat.com>
  536. - remove dependency on openssl -- would need to be too precise
  537. * Fri Mar 2 2001 Nalin Dahyabhai <nalin@redhat.com>
  538. - rebuild in new environment
  539. * Mon Feb 26 2001 Nalin Dahyabhai <nalin@redhat.com>
  540. - Revert the patch to move pam_open_session.
  541. - Init script and spec file changes from Pekka Savola. (#28750)
  542. - Patch sftp to recognize '-o protocol' arguments. (#29540)
  543. * Thu Feb 22 2001 Nalin Dahyabhai <nalin@redhat.com>
  544. - Chuck the closing patch.
  545. - Add a trigger to add host keys for protocol 2 to the config file, now that
  546. configuration file syntax requires us to specify it with HostKey if we
  547. specify any other HostKey values, which we do.
  548. * Tue Feb 20 2001 Nalin Dahyabhai <nalin@redhat.com>
  549. - Redo patch to move pam_open_session after the server setuid()s to the user.
  550. - Rework the nopam patch to use be picked up by autoconf.
  551. * Mon Feb 19 2001 Nalin Dahyabhai <nalin@redhat.com>
  552. - Update for 2.5.1p1.
  553. - Add init script mods from Pekka Savola.
  554. - Tweak the init script to match the CVS contrib script more closely.
  555. - Redo patch to ssh-add to try to adding both identity and id_dsa to also try
  556. adding id_rsa.
  557. * Fri Feb 16 2001 Nalin Dahyabhai <nalin@redhat.com>
  558. - Update for 2.5.0p1.
  559. - Use $RPM_OPT_FLAGS instead of -O when building gnome-ssh-askpass
  560. - Resync with parts of Damien Miller's openssh.spec from CVS, including
  561. update of x11 askpass to 1.2.0.
  562. - Only require openssl (don't prereq) because we generate keys in the init
  563. script now.
  564. * Tue Feb 13 2001 Nalin Dahyabhai <nalin@redhat.com>
  565. - Don't open a PAM session until we've forked and become the user (#25690).
  566. - Apply Andrew Bartlett's patch for letting pam_authenticate() know which
  567. host the user is attempting a login from.
  568. - Resync with parts of Damien Miller's openssh.spec from CVS.
  569. - Don't expose KbdInt responses in debug messages (from CVS).
  570. - Detect and handle errors in rsa_{public,private}_decrypt (from CVS).
  571. * Wed Feb 7 2001 Trond Eivind Glomsrxd <teg@redhat.com>
  572. - i18n-tweak to initscript.
  573. * Tue Jan 23 2001 Nalin Dahyabhai <nalin@redhat.com>
  574. - More gettextizing.
  575. - Close all files after going into daemon mode (needs more testing).
  576. - Extract patch from CVS to handle auth banners (in the client).
  577. - Extract patch from CVS to handle compat weirdness.
  578. * Fri Jan 19 2001 Nalin Dahyabhai <nalin@redhat.com>
  579. - Finish with the gettextizing.
  580. * Thu Jan 18 2001 Nalin Dahyabhai <nalin@redhat.com>
  581. - Fix a bug in auth2-pam.c (#23877)
  582. - Gettextize the init script.
  583. * Wed Dec 20 2000 Nalin Dahyabhai <nalin@redhat.com>
  584. - Incorporate a switch for using PAM configs for 6.x, just in case.
  585. * Tue Dec 5 2000 Nalin Dahyabhai <nalin@redhat.com>
  586. - Incorporate Bero's changes for a build specifically for rescue CDs.
  587. * Wed Nov 29 2000 Nalin Dahyabhai <nalin@redhat.com>
  588. - Don't treat pam_setcred() failure as fatal unless pam_authenticate() has
  589. succeeded, to allow public-key authentication after a failure with "none"
  590. authentication. (#21268)
  591. * Tue Nov 28 2000 Nalin Dahyabhai <nalin@redhat.com>
  592. - Update to x11-askpass 1.1.1. (#21301)
  593. - Don't second-guess fixpaths, which causes paths to get fixed twice. (#21290)
  594. * Mon Nov 27 2000 Nalin Dahyabhai <nalin@redhat.com>
  595. - Merge multiple PAM text messages into subsequent prompts when possible when
  596. doing keyboard-interactive authentication.
  597. * Sun Nov 26 2000 Nalin Dahyabhai <nalin@redhat.com>
  598. - Disable the built-in MD5 password support. We're using PAM.
  599. - Take a crack at doing keyboard-interactive authentication with PAM, and
  600. enable use of it in the default client configuration so that the client
  601. will try it when the server disallows password authentication.
  602. - Build with debugging flags. Build root policies strip all binaries anyway.
  603. * Tue Nov 21 2000 Nalin Dahyabhai <nalin@redhat.com>
  604. - Use DESTDIR instead of %%makeinstall.
  605. - Remove /usr/X11R6/bin from the path-fixing patch.
  606. * Mon Nov 20 2000 Nalin Dahyabhai <nalin@redhat.com>
  607. - Add the primes file from the latest snapshot to the main package (#20884).
  608. - Add the dev package to the prereq list (#19984).
  609. - Remove the default path and mimic login's behavior in the server itself.
  610. * Fri Nov 17 2000 Nalin Dahyabhai <nalin@redhat.com>
  611. - Resync with conditional options in Damien Miller's .spec file for an errata.
  612. - Change libexecdir from %%{_libexecdir}/ssh to %%{_libexecdir}/openssh.
  613. * Tue Nov 7 2000 Nalin Dahyabhai <nalin@redhat.com>
  614. - Update to OpenSSH 2.3.0p1.
  615. - Update to x11-askpass 1.1.0.
  616. - Enable keyboard-interactive authentication.
  617. * Mon Oct 30 2000 Nalin Dahyabhai <nalin@redhat.com>
  618. - Update to ssh-askpass-x11 1.0.3.
  619. - Change authentication related messages to be private (#19966).
  620. * Tue Oct 10 2000 Nalin Dahyabhai <nalin@redhat.com>
  621. - Patch ssh-keygen to be able to list signatures for DSA public key files
  622. it generates.
  623. * Thu Oct 5 2000 Nalin Dahyabhai <nalin@redhat.com>
  624. - Add BuildRequires on /usr/include/security/pam_appl.h to be sure we always
  625. build PAM authentication in.
  626. - Try setting SSH_ASKPASS if gnome-ssh-askpass is installed.
  627. - Clean out no-longer-used patches.
  628. - Patch ssh-add to try to add both identity and id_dsa, and to error only
  629. when neither exists.
  630. * Mon Oct 2 2000 Nalin Dahyabhai <nalin@redhat.com>
  631. - Update x11-askpass to 1.0.2. (#17835)
  632. - Add BuildRequiress for /bin/login and /usr/bin/rsh so that configure will
  633. always find them in the right place. (#17909)
  634. - Set the default path to be the same as the one supplied by /bin/login, but
  635. add /usr/X11R6/bin. (#17909)
  636. - Try to handle obsoletion of ssh-server more cleanly. Package names
  637. are different, but init script name isn't. (#17865)
  638. * Wed Sep 6 2000 Nalin Dahyabhai <nalin@redhat.com>
  639. - Update to 2.2.0p1. (#17835)
  640. - Tweak the init script to allow proper restarting. (#18023)
  641. * Wed Aug 23 2000 Nalin Dahyabhai <nalin@redhat.com>
  642. - Update to 20000823 snapshot.
  643. - Change subpackage requirements from %%{version} to %%{version}-%%{release}
  644. - Back out the pipe patch.
  645. * Mon Jul 17 2000 Nalin Dahyabhai <nalin@redhat.com>
  646. - Update to 2.1.1p4, which includes fixes for config file parsing problems.
  647. - Move the init script back.
  648. - Add Damien's quick fix for wackiness.
  649. * Wed Jul 12 2000 Nalin Dahyabhai <nalin@redhat.com>
  650. - Update to 2.1.1p3, which includes fixes for X11 forwarding and strtok().
  651. * Thu Jul 6 2000 Nalin Dahyabhai <nalin@redhat.com>
  652. - Move condrestart to server postun.
  653. - Move key generation to init script.
  654. - Actually use the right patch for moving the key generation to the init script.
  655. - Clean up the init script a bit.
  656. * Wed Jul 5 2000 Nalin Dahyabhai <nalin@redhat.com>
  657. - Fix X11 forwarding, from mail post by Chan Shih-Ping Richard.
  658. * Sun Jul 2 2000 Nalin Dahyabhai <nalin@redhat.com>
  659. - Update to 2.1.1p2.
  660. - Use of strtok() considered harmful.
  661. * Sat Jul 1 2000 Nalin Dahyabhai <nalin@redhat.com>
  662. - Get the build root out of the man pages.
  663. * Thu Jun 29 2000 Nalin Dahyabhai <nalin@redhat.com>
  664. - Add and use condrestart support in the init script.
  665. - Add newer initscripts as a prereq.
  666. * Tue Jun 27 2000 Nalin Dahyabhai <nalin@redhat.com>
  667. - Build in new environment (release 2)
  668. - Move -clients subpackage to Applications/Internet group
  669. * Fri Jun 9 2000 Nalin Dahyabhai <nalin@redhat.com>
  670. - Update to 2.2.1p1
  671. * Sat Jun 3 2000 Nalin Dahyabhai <nalin@redhat.com>
  672. - Patch to build with neither RSA nor RSAref.
  673. - Miscellaneous FHS-compliance tweaks.
  674. - Fix for possibly-compressed man pages.
  675. * Wed Mar 15 2000 Damien Miller <djm@ibs.com.au>
  676. - Updated for new location
  677. - Updated for new gnome-ssh-askpass build
  678. * Sun Dec 26 1999 Damien Miller <djm@mindrot.org>
  679. - Added Jim Knoble's <jmknoble@pobox.com> askpass
  680. * Mon Nov 15 1999 Damien Miller <djm@mindrot.org>
  681. - Split subpackages further based on patch from jim knoble <jmknoble@pobox.com>
  682. * Sat Nov 13 1999 Damien Miller <djm@mindrot.org>
  683. - Added 'Obsoletes' directives
  684. * Tue Nov 09 1999 Damien Miller <djm@ibs.com.au>
  685. - Use make install
  686. - Subpackages
  687. * Mon Nov 08 1999 Damien Miller <djm@ibs.com.au>
  688. - Added links for slogin
  689. - Fixed perms on manpages
  690. * Sat Oct 30 1999 Damien Miller <djm@ibs.com.au>
  691. - Renamed init script
  692. * Fri Oct 29 1999 Damien Miller <djm@ibs.com.au>
  693. - Back to old binary names
  694. * Thu Oct 28 1999 Damien Miller <djm@ibs.com.au>
  695. - Use autoconf
  696. - New binary names
  697. * Wed Oct 27 1999 Damien Miller <djm@ibs.com.au>
  698. - Initial RPMification, based on Jan "Yenya" Kasprzak's <kas@fi.muni.cz> spec.

 制作过程和之前制作openssh 9.5几乎没差别,这里就不再赘述。

源码包和二进制rpm包有需要的网友可在我的资源获取。

2024年1月5日

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/我家小花儿/article/detail/160543
推荐阅读
相关标签
  

闽ICP备14008679号