In runlevel 1, sshd is not running by default so something has to be done to work remotely via ssh. The advice used to be to remove the K*ssh links from /etc/rc{2..5}.d but there are no such links on Squeeze:
Code:
root@LS1:~# ll /etc/rc*.d/*ssh*
lrwxrwxrwx 1 root root 13 Mar 16 2011 /etc/rc2.d/S03ssh -> ../init.d/ssh
lrwxrwxrwx 1 root root 13 Mar 16 2011 /etc/rc3.d/S03ssh -> ../init.d/ssh
lrwxrwxrwx 1 root root 13 Mar 16 2011 /etc/rc4.d/S03ssh -> ../init.d/ssh
lrwxrwxrwx 1 root root 13 Mar 16 2011 /etc/rc5.d/S03ssh -> ../init.d/ssh
I tried an alternative solution, adding an ssh start link to /etc/rc1.d:
Code:
root@LS1:~# cd /etc/rc1.d && ln -s ../init.d/ssh S07ssh
but it did not work (trying to ssh in got "connection refused".
Unexpectedly, manually running
/etc/init.d/ssh start on the console did enable ssh login. I do not understand why the init script link was not equivalent to the command.
Incidentally, using
telinit 2 to leave runlevel 1 resulted in a hung system displaying "Starting NFS kernel daemon: nfsd". This was solved by using the power button to initiate shutdown and boot -- not an option when working remotely. The workaround is to use
telinit 6 (not yet tested).