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

Re: Re: Debian on a Qube 1: SSH connection refused: Success!



> This new init script should have 'set -x' at the top [..]
That made it, thanks a lot!
sshd comes up now, ssh login was successful!
I just changed the 'set -e' to 'set -x' in the sshd init script
(/etc/init.d/ssh), added the 'exec' line as suggested
and got this output:

+ test -x /usr/sbin/sshd
+ test -f /etc/default/ssh
+ . /etc/default/ssh
++ SSHD_OPTS=
+ export PATH=/bin:/usr/bin:/sbin:/usr/sbin:/usr/sbin:/sbin
+ PATH=/bin:/usr/bin:/sbin:/usr/sbin:/usr/sbin:/sbin
+ check_for_no_start
+ '[' -e /etc/ssh/sshd_not_to_be_run ']'
+ check_privsep_dir
+ '[' '!' -d /var/run/sshd ']'
+ echo -n 'Starting OpenBSD Secure Shell server: sshd'
Starting OpenBSD Secure Shell server: sshd+ start-stop-daemon --start --quiet --
pidfile /var/run/sshd.pid --exec /usr/sbin/sshd --
+ echo .
.
+ exit 0

Anything strange there? Why the execution was stopped on 'set -e' ?
'set -ex' results in the same output. Outcommenting the line also works,
changing back to 'set -e' results in 'connection refused' again.
I feel the option 'set -e' to be dangerous to the sshd init script
of the old Qube's due to the missing of a keyboard ...
-- 
Pepillo



Reply to: