LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > DamnSmallLinux
User Name
Password
DamnSmallLinux This forum is for the discussion of DamnSmallLinux.

Notices


Reply
  Search this Thread
Old 11-30-2005, 11:36 PM   #1
simplebob
LQ Newbie
 
Registered: Mar 2005
Location: Pennsylvania
Distribution: Damn Small Linux
Posts: 16

Rep: Reputation: 0
running ssh on start up


basically i need to know how to run the ssh service when DSL is starting up. i have nothing connected to the computer and i am using it as a file/web server so it would be best to get this correct the first time because it's a pain unplugging every thing from my windows box and attaching it to my linux box.

thank you in advance,

Dan...
 
Old 12-01-2005, 10:03 AM   #2
dubya
Member
 
Registered: Mar 2004
Location: Kitchener, Ontario, Canada
Posts: 386

Rep: Reputation: 30
I'm not sure I fully understand what you want to do. Did you want to start the ssh daemon when you boot the Linux box or Linux is already running and you want to start the ssh daemon when an internet connection is detected?

Starting the daemon is as easy as typing the following as root user:
Code:
# /etc/init.d/sshd start
I'm sorry if I misinterpreted; please clarify.
 
Old 12-01-2005, 10:55 AM   #3
simplebob
LQ Newbie
 
Registered: Mar 2005
Location: Pennsylvania
Distribution: Damn Small Linux
Posts: 16

Original Poster
Rep: Reputation: 0
yeah, when i boot my linux box i want the ssh deamon to start.

i know how to start it after it's running, but i have nothing attached to the computer other than the power supply and the network cable.
 
Old 12-01-2005, 11:13 AM   #4
dubya
Member
 
Registered: Mar 2004
Location: Kitchener, Ontario, Canada
Posts: 386

Rep: Reputation: 30
Usually by default, it is starting, but you can add it with the following comand:
Code:
# /sbin/chkconfig --add sshd
To check that it's been added, run:
Code:
# /sbin/chkconfig --list sshd
This will display whether the daemon is running or not at each run level.
 
Old 12-01-2005, 06:50 PM   #5
jdogpc
Member
 
Registered: Jul 2005
Location: Mafra, PT
Distribution: Fedora Core
Posts: 90

Rep: Reputation: 15
Hi simplebob,

Just make a symbolic link from your /etc/init.d/sshd to your current runlevel that I think should be 5, so
ln -s /etc/init.d/sshd /etc/rc5.d/S55sshd

S55 before sshd means it should start in that ordinal position, so check that your network service starts before that number ( i.e. S54 or less).

to check your runlevel just type runlevel at a command prompt.


Hope this does what you want.
 
Old 12-11-2005, 01:21 PM   #6
netcrawl
Member
 
Registered: Jan 2004
Location: British Columbia
Distribution: Slackware64-current, aarch64
Posts: 220

Rep: Reputation: 141Reputation: 141
Just saw this thread; I happened to set this up today.

I'm using DSL 1.5 with a harddrive install on a P233, headless, to stream audio, similar to the what you describe wanting to do.

To start SSH at boot, I added the line:

/etc/init.d/ssh start

to the end of /etc/rc5.d/S99bootlocal

Works for me, hope this helps.
 
Old 12-16-2005, 04:39 PM   #7
adssse
Member
 
Registered: May 2005
Distribution: Ubuntu, Jolicloud
Posts: 136

Rep: Reputation: 15
Yup, I believe it should also work if you place the line in bootlocal.sh
 
Old 12-16-2005, 05:31 PM   #8
simplebob
LQ Newbie
 
Registered: Mar 2005
Location: Pennsylvania
Distribution: Damn Small Linux
Posts: 16

Original Poster
Rep: Reputation: 0
addsse, i recall putting an entry in bootlocal.sh before for a media drive before and it worked. unfortunately i am going through a change of address, so i am going to try that when i get every thing unpacked and set up at my new place. i will let you know if it works though.

thank you to every one who replied. have a safe and happy holiday.

cheers,

Daniel McQuay
 
Old 04-16-2008, 04:49 PM   #9
andrias
LQ Newbie
 
Registered: Apr 2008
Posts: 17

Rep: Reputation: 0
same problem with startup

same with earlier post, i've plan my dsl is running on level 3 and always run startx after boot (just the same use runlevel 5 but diferent way), any body give me suggestion to have to do ?
 
  


Reply



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
Running Program Through SSH windisch Linux - General 6 10-04-2005 06:10 AM
Running programs via ssh Nazxul Linux - Software 2 04-24-2004 03:06 PM
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
running ssh on redhat 8.0 sheek Linux - Newbie 2 07-22-2003 06:46 PM
Running X through SSH cdakin Linux - Newbie 0 04-23-2002 08:40 AM

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

All times are GMT -5. The time now is 08:29 PM.

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