From 2d18de6ab9030718c9e0a31cd4a3c70945d46d6b Mon Sep 17 00:00:00 2001 From: seuzw <930zhaowei@163.com> Date: Thu, 5 May 2022 10:54:50 +0800 Subject: [PATCH] fix incorrect sftp-server binary path in /etc/ssh/sshd_config --- openssh.spec | 8 +++++++- set-sshd-config.patch | 14 ++++---------- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/openssh.spec b/openssh.spec index b99eede..222fa7b 100644 --- a/openssh.spec +++ b/openssh.spec @@ -6,7 +6,7 @@ %{?no_gtk2:%global gtk2 0} %global sshd_uid 74 -%global openssh_release 2 +%global openssh_release 3 Name: openssh Version: 8.8p1 @@ -422,6 +422,12 @@ getent passwd sshd >/dev/null || \ %attr(0644,root,root) %{_mandir}/man8/sftp-server.8* %changelog +* Thu May 05 2022 seuzw<930zhaowei@163.com> - 8.8p1-3 +- Type:bugfix +- CVE:NA +- SUG:NA +- DESC:fix incorrect sftp-server binary path in /etc/ssh/sshd_config + * Tue Mar 08 2021 kircher - 8.8P1-2 - Type:bugfix - CVE:NA diff --git a/set-sshd-config.patch b/set-sshd-config.patch index 7366925..1bf951b 100644 --- a/set-sshd-config.patch +++ b/set-sshd-config.patch @@ -7,8 +7,8 @@ Subject: [PATCH] set sshd_config | 32 +++++++++++++++++++------------- 1 file changed, 19 insertions(+), 13 deletions(-) -diff --git a/sshd_config b/sshd_config -index 42ecf9b..67739b2 100644 +Index: b/sshd_config +=================================================================== --- a/sshd_config +++ b/sshd_config @@ -12,7 +12,7 @@ @@ -92,7 +92,7 @@ index 42ecf9b..67739b2 100644 #PrintLastLog yes #TCPKeepAlive yes #PermitUserEnvironment no -@@ -119,8 +120,13 @@ AuthorizedKeysFile .ssh/authorized_keys +@@ -119,6 +120,11 @@ AuthorizedKeysFile .ssh/authorized_keys # no default banner path #Banner none @@ -102,11 +102,5 @@ index 42ecf9b..67739b2 100644 +AcceptEnv XMODIFIERS + # override default of no subsystems --Subsystem sftp /usr/libexec/sftp-server -+Subsystem sftp /usr/libexec/openssh/sftp-server + Subsystem sftp /usr/libexec/sftp-server - # Example of overriding settings on a per-user basis - #Match User anoncvs --- -1.8.3.1 -