--- Begin Message ---
- To: submit@bugs.debian.org
- Subject: Please don't touch sshd from interfaces-up
- From: Peter Palfrader <weasel@debian.org>
- Date: Sun, 18 Jan 2009 17:59:18 +0100
- Message-id: <20090118165918.GE12108@anguilla.noreply.org>
Package: openssh-server
Version: 1:5.1p1-5
| * Check that /var/run/sshd.pid exists and that the process ID listed there
| corresponds to sshd before running '/etc/init.d/ssh reload' from if-up
| script; SIGHUP is racy if called at boot before sshd has a chance to
| install its signal handler, but fortunately the pid file is written
| after that which lets us avoid the race (closes: #502444).
| * While the above is a valuable sanity-check, it turns out that it doesn't
| really fix the bug (thanks to Kevin Price for testing), so for the
| meantime we'll just use '/etc/init.d/ssh restart', even though it is
| unfortunately heavyweight.
Why restart it at all? There's little point in the default
configuration where sshd listens on INADDR_ANY.
At least make it configurable and don't mess with it from interfaces by
default.
Thanks
--
| .''`. ** Debian GNU/Linux **
Peter Palfrader | : :' : The universal
http://www.palfrader.org/ | `. `' Operating System
| `- http://www.debian.org/
--- End Message ---
--- Begin Message ---
- To: 512209-done@bugs.debian.org
- Subject: Re: Bug#512209: Please don't touch sshd from interfaces-up
- From: Colin Watson <cjwatson@debian.org>
- Date: Tue, 2 Dec 2025 10:44:32 +0000
- Message-id: <aS7DEEfe_f4iAbzb@riva.ucam.org>
- In-reply-to: <20090118165918.GE12108@anguilla.noreply.org>
- References: <20090118165918.GE12108@anguilla.noreply.org>
Source: openssh
Source-Version: 1:7.9p1-1
On Sun, Jan 18, 2009 at 05:59:18PM +0100, Peter Palfrader wrote:
Package: openssh-server
Version: 1:5.1p1-5
| * Check that /var/run/sshd.pid exists and that the process ID listed there
| corresponds to sshd before running '/etc/init.d/ssh reload' from if-up
| script; SIGHUP is racy if called at boot before sshd has a chance to
| install its signal handler, but fortunately the pid file is written
| after that which lets us avoid the race (closes: #502444).
| * While the above is a valuable sanity-check, it turns out that it doesn't
| really fix the bug (thanks to Kevin Price for testing), so for the
| meantime we'll just use '/etc/init.d/ssh restart', even though it is
| unfortunately heavyweight.
Why restart it at all? There's little point in the default
configuration where sshd listens on INADDR_ANY.
At least make it configurable and don't mess with it from interfaces by
default.
Fixed some time ago:
openssh (1:7.9p1-1) unstable; urgency=medium
[...]
* Remove /etc/network/if-up.d/openssh-server, as it causes more problems
than it solves (thanks, Christian Ehrhardt, Andreas Hasenack, and David
Britton; closes: #789532, LP: #1037738, #1674330, #1718227). Add an
"if-up hook removed" section to README.Debian documenting the corner
case that may need configuration adjustments.
-- Colin Watson <cjwatson@debian.org> Sun, 21 Oct 2018 10:39:24 +0100
Thanks,
--
Colin Watson (he/him) [cjwatson@debian.org]
--- End Message ---