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

Bug#141760: ssh2: init.d file has wrong default port

Package: ssh2
Version: 2.0.13-7

When SSH2 starts, it tries to read the port number from the config file.
If it is not present, it sets PORT=2222.  However, SSH2 starts on port 22
if that parameter is not set.

This prevents the "stop" and "restart" directives from working:

wolf:~$ ls -l /var/run/ssh*
-rw-r--r--    1 root     root            4 Apr  8 05:59 /var/run/sshd2_22.pid

wolf:~$ bash -x /etc/init.d/ssh2 restart
+ PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
+ DAEMON=/usr/sbin/sshd2
+ NAME=sshd2
++ perl -ne 'print $1 if /^\s*Port\s+(\d+)\b/' /etc/ssh2/sshd2_config
+ '[' -z '' ']'
+ PORT=2222
+ DESC=Secure Shell server v2
+ test -f /usr/sbin/sshd2
+ set -e
+ echo -n 'Restarting Secure Shell server v2: '
Restarting Secure Shell server v2: + start-stop-daemon --stop --quiet --oknodo --pidfile /var/run/sshd2_2222.pid --exec /usr/sbin/sshd2
+ sleep 1
+ start-stop-daemon --start --quiet --pidfile /var/run/sshd2_2222.pid --exec /usr/sbin/sshd2
FATAL: Creating listener failed: port 22 probably already in use!

                                 ( bcwhite@precidia.com )

          80% of people surveyed think they are above-average drivers

To UNSUBSCRIBE, email to debian-qa-packages-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org

Reply to: