Bug#59336: marked as done (ssh2: Should be easy to share ssh-nonfree and ssh2 on the same port)
Your message dated Sun, 29 Dec 2002 11:55:38 +0100
with message-id <E18Sb6Y-0003m9-00@kalypso>
and subject line Your ssh2 bug
has caused the attached Bug report to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere. Please contact me immediately.)
Debian bug tracking system administrator
(administrator, Debian Bugs database)
Received: (at submit) by bugs.debian.org; 1 Mar 2000 09:49:44 +0000
Received: (qmail 22111 invoked from network); 1 Mar 2000 09:49:44 -0000
Received: from minnie.eecs.umich.edu (126.96.36.199)
by master.debian.org with SMTP; 1 Mar 2000 09:49:44 -0000
Received: (from steveh@localhost)
by minnie.eecs.umich.edu (8.9.3/8.9.3/Debian 8.9.3-6) id EAA03478;
Wed, 1 Mar 2000 04:49:33 -0500
Date: Wed, 1 Mar 2000 04:49:33 -0500
From: Steve Hsieh <email@example.com>
Subject: ssh2: Should be easy to share ssh-nonfree and ssh2 on the same port
X-Mailer: bug 3.2.10
Hi Ed/ssh2 developer,
According to README.Debian, it says that "trying to divert ssh1's daemon and
handle all error conditions proved too difficult... If you want this
situation to improve, please patch ssh1 and make it easier to replace...etc"
It would seem, however, that the only thing that needs to be done is
not start ssh-nonfree on startup. That being the case, it should be
easy to have both ssh1 and ssh2 share the same port.
The only steps that are required for ssh2 to do this properly is
1. In the postinst, stop ssh-nonfree if it is running, and then
do a diversion of /etc/init.d/ssh-nonfree:
dpkg-divert --package ssh2 --add --rename --divert /etc/init.d/ssh-nonfree.ssh-nonfree /etc/init.d/ssh-nonfree
In postrm, do the reverse in case user removes ssh2 but keeps ssh1...
2. ssh2 must provide a dummy /etc/init.d/ssh-nonfree that just does an exit 0
and a comment that the original file has been diverted
3. (obvious) ssh2 must be configured to call ssh1 on backup. Add the two
additional lines in /etc/ssh2/sshd2_config (and change the port back to 22):
That should be all that's required. This setup works for me and no changes need to be done to ssh...
If it's the case that Debian Policy forbids packages from diverting other
package's /etc/init.d/ files, then all we need to do is get the ssh-nonfree
maintainer to add one line to their init.d file:
test -x /usr/sbin/sshd2 && exit 0
or something similar
Assuming that sshd2 is setup to call ssh1 in compatibility mode, then again
everything should work.
How about it? I'd like to see this worked out before potato is released as
it would seem to be a minor issue, and I'm sure a lot of users would appreciate
having both on the same port. If i'm naive and there's some reason why
what I wrote above can't be done, then forgive me and tell me why...
-- System Information
Debian Release: 2.2
Kernel Version: Linux minnie.eecs.umich.edu 2.2.14 #1 SMP Fri Jan 21 23:36:42 EST 2000 i686 unknown
Versions of the packages ssh2 depends on:
ii libc6 2.1.3-5 GNU C Library: Shared libraries and Timezone
ii libncurses4 4.2-8 Shared libraries for terminal handling
ii xlib6g 3.3.6-3 shared libraries required by X clients
ii zlib1g 1.1.3-5 compression library - runtime
^^^ (Provides virtual package libz1)
--- Begin /etc/ssh2/ssh2_config (modified conffile)
#PasswordPrompt "%U@%H's password: "
PasswordPrompt "%U's password: "
--- End /etc/ssh2/ssh2_config
Received: (at 59336-done) by bugs.debian.org; 29 Dec 2002 10:55:39 +0000
>From firstname.lastname@example.org Sun Dec 29 04:55:39 2002
Received: from smtpzilla2.xs4all.nl [188.8.131.52]
by master.debian.org with esmtp (Exim 3.12 1 (Debian))
id 18Sb6Z-0002Mp-00; Sun, 29 Dec 2002 04:55:39 -0600
Received: from kalypso (ramstraat29.xs4all.nl [184.108.40.206])
by smtpzilla2.xs4all.nl (8.12.0/8.12.0) with ESMTP id gBTAtcZR082345
for <email@example.com>; Sun, 29 Dec 2002 11:55:38 +0100 (CET)
Received: from bas by kalypso with local (Exim 3.36 #1 (Debian))
for <firstname.lastname@example.org>; Sun, 29 Dec 2002 11:55:38 +0100
From: Bas Zoetekouw <email@example.com>
Subject: Your ssh2 bug
Sender: Bas Zoetekouw <firstname.lastname@example.org>
Date: Sun, 29 Dec 2002 11:55:38 +0100
X-Spam-Status: No, hits=-0.7 required=5.0
Ssh2 was removed from the Debian archive this morning. It's
replacement, openssh (ssh package), does not seem to be affected
by this bug; therefore, I'm closing it.