LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 01-31-2007, 08:26 AM   #1
renegadeavenger
LQ Newbie
 
Registered: Jul 2004
Posts: 25

Rep: Reputation: 15
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?
 
Old 01-31-2007, 09:05 AM   #2
Dutch Master
Senior Member
 
Registered: Dec 2005
Posts: 1,686

Rep: Reputation: 124Reputation: 124
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.
 
Old 01-31-2007, 09:10 AM   #3
renegadeavenger
LQ Newbie
 
Registered: Jul 2004
Posts: 25

Original Poster
Rep: Reputation: 15
I hate this line in /etc/rc2.d already:
lrwxrwxrwx 1 root root 13 2006-03-20 18:21 S20ssh -> ../init.d/ssh
 
Old 01-31-2007, 09:33 AM   #4
Dutch Master
Senior Member
 
Registered: Dec 2005
Posts: 1,686

Rep: Reputation: 124Reputation: 124
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.
 
Old 01-31-2007, 09:44 AM   #5
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 57
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.
 
Old 01-31-2007, 09:50 AM   #6
Dutch Master
Senior Member
 
Registered: Dec 2005
Posts: 1,686

Rep: Reputation: 124Reputation: 124
@nx5000: you're right. Stand corrected then
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't reboot via ssh, but can from local terminal xymian Linux - Networking 2 09-05-2005 10:04 AM
Xserver won't start after reboot amishdisco Linux - Software 11 12-29-2004 06:20 AM
I turned off SSH, but I cant get it back! How do you start SSH on boot? nmoog Slackware 2 02-08-2004 05:18 PM
Reboot from ssh v00d00101 Linux - Newbie 3 07-09-2003 02:33 AM
X won't start after reboot kodiakmook Linux - General 3 12-21-2001 03:25 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 12:33 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration