Re: Debian on a Qube 1: SSH connection refused
Thanks for the suggestions:
> You could edit /etc/ssh/sshd_config and increase the verbosity of
> logging.
I increased the verbosity to VERBOSE and DEBUG3,
but still nothing in "auth.log".
> Maybe it could be a problem with the ssh-client ?
I tried with the OpenSSH client (3.8.1p1) from Debian Sarge
and with Windows PuTTY 0.58. But ssh to an Qube 2 works fine
with these both clients, so I guess its not problem of the ssh client
(see below).
> Add a new init script, that does lots of logging into a file you can later retrieve [..]
I did some logging by cron (/etc/crontab) every minute:
# lsof -i TCP
COMMAND PID USER FD TYPE DEVICE SIZE NODE NAME
portmap 363 daemon 4u IPv4 274 TCP *:sunrpc (LISTEN)
inetd 440 root 4u IPv4 404 TCP *:auth (LISTEN)
Nothing from sshd!
# ps aux
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
root 1 0.9 2.1 2488 632 ? S 15:42 0:03 init [2]
root 2 0.0 0.0 0 0 ? S 15:42 0:00 [keventd]
root 3 0.0 0.0 0 0 ? SN 15:42 0:00 [ksoftirqd_CPU0]
root 4 1.3 0.0 0 0 ? S 15:42 0:05 [kswapd]
root 5 0.0 0.0 0 0 ? S 15:42 0:00 [bdflush]
root 6 0.0 0.0 0 0 ? S 15:42 0:00 [kupdated]
root 8 0.0 0.0 0 0 ? S 15:42 0:00 [khubd]
root 9 0.2 0.0 0 0 ? S 15:42 0:01 [kjournald]
root 356 0.0 3.5 4628 1060 ? Ss 15:44 0:00 dhclient -e -pf /var/run/dhclient.eth0.pid -lf
/var/run/dhclient.eth0.leases eth0
daemon 363 0.0 1.6 2804 492 ? Ss 15:44 0:00 /sbin/portmap
root 416 0.2 3.2 4440 976 ? Ss 15:44 0:00 /sbin/syslogd
root 420 0.7 4.2 3140 1280 ? Ss 15:44 0:02 /sbin/klogd
root 431 0.6 1.6 2464 480 ? Ss 15:44 0:01 /usr/sbin/paneld Debian GNU/Linux
root 440 0.0 2.8 4424 856 ? Ss 15:44 0:00 /usr/sbin/inetd
lp 445 0.0 3.4 5164 1044 ? Ss 15:44 0:00 /usr/sbin/lpd -s
daemon 461 0.0 2.5 3420 748 ? Ss 15:44 0:00 /usr/sbin/atd
root 465 0.0 2.8 4008 860 ? Ss 15:44 0:00 /usr/sbin/cron
root 521 4.0 3.2 5076 984 ? S 15:49 0:00 /USR/SBIN/CRON
root 522 4.0 3.2 5076 984 ? S 15:49 0:00 /USR/SBIN/CRON
root 523 6.0 3.3 5076 992 ? S 15:49 0:00 /USR/SBIN/CRON
root 524 23.0 4.5 4532 1364 ? Ss 15:49 0:00 /bin/sh -c lsof -i TCP 2>&1 >> /root/lsof.log
root 526 23.0 4.5 4532 1364 ? Ss 15:49 0:00 /bin/sh -c ps aux 2>&1 >> /root/psaux.log
root 527 0.0 3.8 5864 1152 ? R 15:49 0:00 lsof -i TCP
root 528 0.0 3.3 4508 996 ? R 15:49 0:00 ps aux
root 530 0.0 4.7 10072 1428 ? R 15:49 0:00 /usr/sbin/sendmail -i -FCronDaemon -oem root
Again: Nothing from sshd!
(The sendmail message from cron (last line) noticed that "pstree" was not found.)
Result: sshd did not come up, right?
Todays entry in /var/log/deamon.log:
Jun 26 15:44:36 localhost rpc.statd[457]: Version 1.0.6 Starting
Jun 26 15:44:36 localhost rpc.statd[457]: statd running as root. chown /var/lib/
nfs/sm to choose different user
Jun 26 15:44:36 localhost rpc.statd[457]: unable to register (statd, 1, udp).
Jun 26 15:44:38 localhost init: no more processes left in this runlevel
Jun 26 15:49:42 localhost init: Switching to runlevel: 0
"no more processes left in this runlevel": Do I have to worry about that?
> also start a reverse tunnel ssh connection going out [..]
Huh! Then I'll have to read some manuals before ...
but this will help to understand why sshd did not come up?
Thanks for any further suggestions!
--
Pepillo
Reply to: