[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: ssh

Hash: SHA1

On Saturday 13 July 2002 06:35, you wrote:
> Yes that is exactly my point. With my pkgs you don't need to specify any
> options because IPv6
> is enabled by default. Probably we misunderstood eachother.
> When I wrote Listen :: it was jus an example to say that you need to do
> something more in order
> to have the dameon listeining on IPv6. As well is running it with -6.
> Fabio

I tried to solve the problem with a modification of the sshd startscript. If
it this works well, I can commit the patch to the maintainer to include it
and to have a easy way to setup ipv6 with the ssh package of the main pool.

I created a file sshd located in /etc/default, which is attached.
Also attached is a patch for /etc/init.d/ssh. The only prob is, the value is
only working with "ssh start" and not with "start [reload|restart]" and I
dont realy get why. Help is welcome. ;)

Regards, Jan.
- -- 
IPv6 Research of cyconet.org available at http://ipv6.cyconet.org
Feel free to contact webmaster at cyconet dot org for peering tunnel.
Version: GnuPG v1.0.7 (GNU/Linux)

--- ssh.old	Fri Jun 28 00:00:00 2002
+++ ssh	Sat Jul 13 13:04:36 2002
@@ -2,6 +2,9 @@
 # /etc/init.d/ssh: start and stop the OpenBSD "secure shell(tm)" daemon
+# Read our control file.
+source /etc/default/sshd
 test -x /usr/sbin/sshd || exit 0
 ( /usr/sbin/sshd -\? 2>&1 | grep -q OpenSSH ) 2>/dev/null || exit 0
@@ -25,7 +28,7 @@
 	    mkdir /var/run/sshd; chmod 0755 /var/run/sshd
         echo -n "Starting OpenBSD Secure Shell server: sshd"
-	start-stop-daemon --start --quiet --pidfile /var/run/sshd.pid --exec /usr/sbin/sshd
+	start-stop-daemon --start --quiet --pidfile /var/run/sshd.pid --exec /usr/sbin/sshd -- $SSHDOPTS
         echo "."
@@ -38,7 +41,7 @@
   	test -f /etc/ssh/sshd_not_to_be_run && exit 0
         echo -n "Reloading OpenBSD Secure Shell server's configuration"
-	start-stop-daemon --stop --signal 1 --quiet --oknodo --pidfile /var/run/sshd.pid --exec /usr/sbin/sshd
+	start-stop-daemon --stop --signal 1 --quiet --oknodo --pidfile /var/run/sshd.pid --exec /usr/sbin/sshd -- $SSHDOPTS
 	echo "."
@@ -48,7 +51,7 @@
         echo -n "Restarting OpenBSD Secure Shell server: sshd"
 	start-stop-daemon --stop --quiet --oknodo --pidfile /var/run/sshd.pid
 	sleep 2
-	start-stop-daemon --start --quiet --pidfile /var/run/sshd.pid --exec /usr/sbin/sshd
+	start-stop-daemon --start --quiet --pidfile /var/run/sshd.pid --exec /usr/sbin/sshd -- $SSHDOPTS
 	echo "."
# This file controls the activity of sshd

# sshd options (use IPv6).

Reply to: