Results 1 to 8 of 8

Thread: How do I run sshd on startup?

  1. #1
    Junior Member
    Join Date
    Dec 2004
    Posts
    3

    How do I run sshd on startup?

    Hi. I'm new to the whole linux / Knoppix scene and wanted to know how I can automatically startup a ssh server after booting. I have already successfully installed to my Hard Drive. I'm using Knoppix 3.4 I think.

    Thanks a bunch!
    CJackson0

  2. #2
    Senior Member
    Join Date
    Nov 2003
    Posts
    1,323
    Code:
    su
    update-rc.d ssh defaults
    You can remove it with:
    Code:
    update-rc.d -f ssh remove

  3. #3
    Junior Member
    Join Date
    Dec 2004
    Posts
    3
    It worked perfectly. Thanks a bunch!

    So what did that do and why?

  4. #4
    Senior Member
    Join Date
    Nov 2003
    Posts
    1,323
    update-rc.d is the debian way of managing services and daemons started by the init scripts. defaults sets up services to start and stop at certain points when changing runlevels. For ssh update-rc.d ssh defaults is the same as typing: update-rc.d ssh start 20 2 3 4 5 . stop 20 0 1 6 .
    man update-rc.d will give you a better explanation.
    ls -l /etc/rc5.d shows you what services are started and stopped and in which order at the graphical runlevel.

  5. #5
    Senior Member registered user
    Join Date
    Jun 2003
    Posts
    611
    You can also manually edit this stuff although update-rc.d is easier.

    /etc/rc5.d is the run control directory for run level 5 (graphical boot)
    There are shortcuts in there which link to startup scripts usually in /etc/init.d. They are anme beginning with a capitol S or K (s for start and k for kill) folowwed by a two-digit number. The number determines the order in which the scripts are executed, highes number goes last.

    You can create new links in this folder with the ln -s command like this.

    ln -s /etc/init.d/ssh /etc/rc5.d/S90ssh


    other runlevels-

    rc2.d is for text mode boot without networking
    rc3.d is for text mode boot with networking
    rc1.d is single user (maintenance) mode and generally not much is run at this run level
    I think 6 is for shutdown, not too sure about 4.

  6. #6
    Member registered user
    Join Date
    Nov 2004
    Location
    Bellevue, WA
    Posts
    83
    Quote Originally Posted by arkaine23
    rc2.d is for text mode boot without networking
    rc3.d is for text mode boot with networking
    rc1.d is single user (maintenance) mode and generally not much is run at this run level
    I think 6 is for shutdown, not too sure about 4.
    One of the things I always liked about Linux/Open Source is that it always is about learning. Check the /etc/inittab file for details on what each level does. It contains a lot more information. Check also the man page: man inittab, which will help you iinterpret each line.

    If you are not sure what those levels are, just check the directories and a simple ls should reveal what services are started and which ones are stoped upon exit.

    Once you learn to read the scripts, it is a very educating exercise.

    --GN

  7. #7
    Junior Member
    Join Date
    Dec 2004
    Posts
    3
    Thanks for the help all! I might just be inquisitive enough to try and figure all this out. And then when I wreck it, I'll be re-installing but it'll be a fun ride.

  8. #8
    Senior Member registered user
    Join Date
    May 2003
    Posts
    981
    Quote Originally Posted by cjackson0
    Thanks for the help all! I might just be inquisitive enough to try and figure all this out. And then when I wreck it, I'll be re-installing but it'll be a fun ride.
    Been there, crashed that. For a good fundamental understanding of Linux, try rute: http://www.icon.co.za/~psheer/book/index.html.gz

Similar Threads

  1. start sshd automatically
    By paradox87 in forum Hdd Install / Debian / Apt
    Replies: 2
    Last Post: 06-16-2004, 11:38 PM
  2. does sshd work?
    By A. Jorge Garcia in forum General Support
    Replies: 13
    Last Post: 11-02-2003, 09:42 PM
  3. LiveCD and sshd
    By Not_Public in forum General Support
    Replies: 0
    Last Post: 09-21-2003, 11:34 PM
  4. SSHD configuration
    By garyng in forum General Support
    Replies: 1
    Last Post: 09-10-2003, 04:55 PM
  5. sshd at boot
    By Xam_nl in forum General Support
    Replies: 7
    Last Post: 06-23-2003, 08:17 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Supermicro 4U 32x 3.5 Bays 4-Nodes | 8x E5-2660 v3 2.6Ghz | 64gb RAM | 9207-8i picture

Supermicro 4U 32x 3.5 Bays 4-Nodes | 8x E5-2660 v3 2.6Ghz | 64gb RAM | 9207-8i

$699.99



NEW Cisco UCSB-5108-AC2 Blade Server Chassis 8 Slot 6RU Chassis 4 X PSU - DW picture

NEW Cisco UCSB-5108-AC2 Blade Server Chassis 8 Slot 6RU Chassis 4 X PSU - DW

$599.40



Supermicro 938-16 16-LFF MicroCloud SuperServer 5038MR-H8TRF *No Blade Servers* picture

Supermicro 938-16 16-LFF MicroCloud SuperServer 5038MR-H8TRF *No Blade Servers*

$159.99



Cisco UCS 5108 Blade Server Chassis Enclosure N20-C6508 4x PSU 8x Fans 2x Fabric picture

Cisco UCS 5108 Blade Server Chassis Enclosure N20-C6508 4x PSU 8x Fans 2x Fabric

$174.99



NETAPP HCI NAF-1701 SuperMicro Server 4X BLADE H410C 8X GOLD 5120 4 NODE SERVER picture

NETAPP HCI NAF-1701 SuperMicro Server 4X BLADE H410C 8X GOLD 5120 4 NODE SERVER

$1499.97



Dell PowerEdge VRTX 2.5

Dell PowerEdge VRTX 2.5"x25 Bay Blade Enclosure 4x1600W + 4X M640 (4X Blades)

$1599.99



Dell Poweredge C6400 24x 2.5’’ 2x 2400W 4x C6420 Nodes H330 | 2x SFP | 8x Trays picture

Dell Poweredge C6400 24x 2.5’’ 2x 2400W 4x C6420 Nodes H330 | 2x SFP | 8x Trays

$799.99



Compellent FS8600 FS8600 NAS Appl, 96Gb Ram, dual P.S (4) Intel 10GbE 2x blades picture

Compellent FS8600 FS8600 NAS Appl, 96Gb Ram, dual P.S (4) Intel 10GbE 2x blades

$215.00



Dell PowerEdge M640 Blade Barebone Server Dell P/N: HHB006 Tested Working picture

Dell PowerEdge M640 Blade Barebone Server Dell P/N: HHB006 Tested Working

$149.99



Dell PowerEdge M630 Blade Server 2x Xeon E5-2680 v4, 2F3MP , 4GDP5 ,R10KJ ,JVFVR picture

Dell PowerEdge M630 Blade Server 2x Xeon E5-2680 v4, 2F3MP , 4GDP5 ,R10KJ ,JVFVR

$140.00