LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   Debian SSH does not start on reboot (https://www.linuxquestions.org/questions/debian-26/debian-ssh-does-not-start-on-reboot-524345/)

renegadeavenger 01-31-2007 08:26 AM

Debian SSH does not start on reboot
 
Hello, I am pretty new to Debian. I have a problem, my Ssh does not seem to start on server reboot. It only starts "after I've login into my account". Is there anyway to modify that?

Dutch Master 01-31-2007 09:05 AM

Yes, create a sym-link from /etc/rc2.d/S20ssh to /etc/init.d/ssh:
Code:

ln -s /etc/rc2.d/S20ssh /etc/init.d/ssh
For this action in that directory you need to be root. Log in as root on the server, issue the above command and reboot.

renegadeavenger 01-31-2007 09:10 AM

I hate this line in /etc/rc2.d already:
lrwxrwxrwx 1 root root 13 2006-03-20 18:21 S20ssh -> ../init.d/ssh

Dutch Master 01-31-2007 09:33 AM

Hmmm, strange that ssh fails then. What does the output of the command
Code:

ps ax | grep ssh
tell you? There should be a line like this:
Code:

4884 ?        Ss    0:00 /usr/sbin/sshd
The 4 digit number (4884) will be different on your machine, but the last entry (/usr/sbin/shh) should be present.

One more thing though: did you install a ssh server in the first place? Do a
Code:

aptitude install ssh
to be sure.

nx5000 01-31-2007 09:44 AM

Quote:

Originally Posted by Dutch Master
One more thing though: did you install a ssh server in the first place? Do a
Code:

aptitude install ssh
to be sure.

small correction:
Code:

aptitude install openssh-server
Ssh server is not installed by default for etch network install for example.

Dutch Master 01-31-2007 09:50 AM

@nx5000: you're right. Stand corrected then :)


All times are GMT -5. The time now is 06:19 PM.