Results 1 to 8 of 8

Thread: sshd at boot

  1. #1
    Junior Member
    Join Date
    Jun 2003
    Posts
    2

    sshd at boot

    I've installed knoppix 3.2 a few days ago, completely configgured everything. I accidently set the "start sshd" option during the install to NO

    Now i want to start sshd at boot time but can't get it working. :cry:

    Tried by adding sshstart into the /etc/init.d/bootmisc.sh but it requeres a enter :(

    Someone help me out Thx!

  2. #2
    Member registered user
    Join Date
    Dec 2002
    Location
    Thousand Oaks, CA
    Posts
    96
    Add "sshd" not "start sshd"

  3. #3
    Senior Member registered user
    Join Date
    Nov 2002
    Location
    USA, IL
    Posts
    1,041

    Re: sshd at boot

    ' ls /etc/rc5.d/*ssh* -l '
    lrwxrwxrwx 1 root root 13 Mar 22 15:45 /etc/rc5.d/S20ssh -> ../init.d/ssh

    Howto:
    ' cd /etc/rc5.d; ln ../init.d/ssh S20ssh -sfn '

    --Interesting, there is no "Kill" entry for it... (correction: yes there is, in runlevels 0 and 6)

    --Don't forget to take your mod out of bootmisc.sh.

    --If you *really* want to set up a bootmisc, this is what I did:

    ' ln /etc/init.d/boot.local /etc/rc5.d/S98bootlocal -sfn '

    --Then you make a script called /etc/init.d/boot.local; here's mine:

    #BEGIN boot.local
    Code:
    #!/bin/bash
    echo '= Executing boot.local...'
    #source $0
    # Can you say "infinite loop!?"
    
    source /etc/profile.local
    
    /usr/sbin/gpm -k
    #/usr/sbin/gpm -m /dev/input/mice -R raw -t imps2
    /usr/sbin/gpm -m /dev/psaux -t imps2
    # -R raw
    
    
    /sbin/ifconfig
    
    setterm -blank 0
    
    # Only do this if you have a Squid proxy
    #export ftp_proxy=http://10.0.0.2:3128/
    #export http_proxy=http://10.0.0.2:3128/
    
    # This is sys-wide path
    export PATH=/sbin:~/bin:/usr/local/bin:/usr/local/sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin:/usr/games:
    
    # Some of this is now in profile.local
    #alias ..='cd ..'
    #alias ...='cd ../..'
    
    alias debsort='dpkg -l >~/DEBInstalled.list '
    #alias deldeb='apt-get remove --purge '
    # We don't want ALL users to have this!!
    
    alias edlocal='jstar ~/localinfo.dat'
    #alias edgo='jstar ~/bin/gonow; echo PK to REAL; read; real'
    
    #alias l='ls -al '
    #alias real='source /etc/profile; source ~/bin/gonow'
    #alias scrn='screen -aA '
    
    # Get rid of stuff we don't need
    killall ypbind
    killall nmbd
    killall smbd
    
    # Note - you don't have to do this if you edit /etc/modules - it's just to free up memory.
    rmmod efs
    rmmod hfs
    rmmod ntfs
    rmmod xfs
    #rmmod ext3
    #rmmod jbd 
    # cdtemp is now ext3
    
    # USB 2.0 - removed
    ##modprobe ehci-hcd
    
    # Some stuff taken from suse's init.d/boot.local:
    ##modprobe usb-storage
    
    # para Zippy = sde if ide-floppy + scsi(3 disks) exists
    modprobe ppa
    
    ##hdparm -a 32 -c 1 -d 1 -u 1 /dev/hdd
    
    # This is needed for SCSI LVM (re-do) - from ' man lvm '
    /sbin/vgscan
    vgchange -a y
    
    swapon -a && swapon -s
    mount -a
    
    cdrecord -scanbus
    
    #df
    #fdisk -l
    
    # Start squid
    #/usr/local/bin/
    squid -z && squid -D
    
    # For UPS 20020318
    ##/usr/local/bulldog/upsd
    ##/usr/local/bulldog/S98bulldogupsd
    
    # For sound
    ##modprobe sb
    
    #df
    
    # dsl
    echo 'ooo Dont forget to pon dsl-provider...'
    
    # XXX added 2002.1210 - due to runlevel not ==5; not nec anymore
    #/bin/rm /etc/nologin
    #/bin/rm /etc/nologin.boot
    
    # Done in scripts
    #/etc/init.d/ssh start
    
    echo '= Done with '$0
    Quote Originally Posted by Xam_nl
    I've installed knoppix 3.2 a few days ago, completely configgured everything. I accidently set the "start sshd" option during the install to NO

    Now i want to start sshd at boot time but can't get it working.

    Tried by adding sshstart into the /etc/init.d/bootmisc.sh but it requeres a enter

    Someone help me out Thx!
    2003.1231 + Edit, added proper 'ln' syntax

  4. #4
    Senior Member registered user
    Join Date
    Feb 2003
    Posts
    118

    Re: sshd at boot

    Quote Originally Posted by Xam_nl
    I've installed knoppix 3.2 a few days ago, completely configgured everything. I accidently set the "start sshd" option during the install to NO

    Now i want to start sshd at boot time but can't get it working.

    Tried by adding sshstart into the /etc/init.d/bootmisc.sh but it requeres a enter

    Someone help me out Thx!
    Quote Originally Posted by mmaki
    Add "sshd" not "start sshd"
    My bash/shell scripting is not upto full speed, yet . . .

    So whats the best way and place to edit bootmisc.sh to accomplish this since I made the same wimpconvert newbie mistake and chose not to start SSH when I did the HD install.

    I managed to get Samaba to work to share the MP3's and html sources for my site(s) that are on the converted box to the rest of my HLAN. This is my minor accomplishment of the day.

    Thanks in advance.

  5. #5
    Senior Member registered user
    Join Date
    Feb 2003
    Location
    Nova Scotia, Canada
    Posts
    2,479

    Re: sshd at boot

    Quote Originally Posted by rec9140

    So whats the best way and place to edit bootmisc.sh to accomplish this since I made the same wimpconvert newbie mistake and chose not to start SSH when I did the HD install.
    dpkg-reconfigure ssh as root.

  6. #6
    Junior Member
    Join Date
    Jun 2003
    Posts
    2
    Thanx for the Info, it works fine now.
    But the problem now is that the boot.local file isn't loaded at boot time so i still have to use bootmisc.sh as boot script.

  7. #7
    Senior Member registered user
    Join Date
    Nov 2002
    Posts
    1,353
    Ok, I know some of you might not like this but an easy way to manage services via the gui is to install gnome control center. It will let you easily control what services start at what runlevels.

    apt-get install gnome-control-center

    Of cource you may need some gnome stuff installed first. I found that everything works in the gnome control center except the networking configuration tool...at least on my box.

  8. #8
    Senior Member registered user
    Join Date
    Nov 2002
    Location
    USA, IL
    Posts
    1,041
    ' ln /etc/init.d/boot.local /etc/rc5.d/S98bootlocal -sfn ' and reboot. That should fixit.

    Quote Originally Posted by Xam_nl
    Thanx for the Info, it works fine now.
    But the problem now is that the boot.local file isn't loaded at boot time so i still have to use bootmisc.sh as boot script.

Similar Threads

  1. How do I run sshd on startup?
    By cjackson0 in forum MS Windows & New to Linux
    Replies: 7
    Last Post: 12-16-2004, 04:42 AM
  2. how to make sshd start automatically at boot time?
    By lothario in forum Hdd Install / Debian / Apt
    Replies: 8
    Last Post: 08-18-2004, 09:14 PM
  3. start sshd at boot time
    By lothario in forum General Support
    Replies: 6
    Last Post: 04-29-2004, 09:47 AM
  4. LiveCD and sshd
    By Not_Public in forum General Support
    Replies: 0
    Last Post: 09-21-2003, 11:34 PM
  5. SSHD configuration
    By garyng in forum General Support
    Replies: 1
    Last Post: 09-10-2003, 04:55 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
  •  


Kingston 32GB 64GB 128GB 256GB USB 3.0 Flash Drive Thumb Memory Stick Pen lot picture

Kingston 32GB 64GB 128GB 256GB USB 3.0 Flash Drive Thumb Memory Stick Pen lot

$285.90



P43330-0A1 HPE 32GB 2RX8 PC5-4800B DDR5 SERVER RAM P43328-B21 / HMCG88MEBRA107N picture

P43330-0A1 HPE 32GB 2RX8 PC5-4800B DDR5 SERVER RAM P43328-B21 / HMCG88MEBRA107N

$1100.00



2 in 1 USB 3.0 Card Reader Micro TF card Reader usb adapter High Speed Cardreder picture

2 in 1 USB 3.0 Card Reader Micro TF card Reader usb adapter High Speed Cardreder

$3.99



WINDOWS 11 PRO 64-BIT USB picture

WINDOWS 11 PRO 64-BIT USB

$32.99



Major Brand 8 GB PC3L-12800 (DDR3-1600) 2Rx8 DDR3L Laptop Memory RAM picture

Major Brand 8 GB PC3L-12800 (DDR3-1600) 2Rx8 DDR3L Laptop Memory RAM

$10.99



USB 3.0 Flash Drive 32GB 64GB 128GB Memory Stick Thumb Stick Lot Pack picture

USB 3.0 Flash Drive 32GB 64GB 128GB Memory Stick Thumb Stick Lot Pack

$826.09



SK Hynix 128GB (4 x 32GB) PC4-2400T DDR4 ECC Server Memory HMA84GR7MFR4N-UH picture

SK Hynix 128GB (4 x 32GB) PC4-2400T DDR4 ECC Server Memory HMA84GR7MFR4N-UH

$649.95



Kingston 32GB 2Rx4 PC4-2400T-RB1-11 ECC REG Server Memory HP24D4R7D4MAM-32 picture

Kingston 32GB 2Rx4 PC4-2400T-RB1-11 ECC REG Server Memory HP24D4R7D4MAM-32

$140.00



MICRON MTA36ASF4G72PZ-2G6E1 | 32GB PC4-2666V ECC RDIMM Server RAM picture

MICRON MTA36ASF4G72PZ-2G6E1 | 32GB PC4-2666V ECC RDIMM Server RAM

$184.95



x4 Intel 128GB NMB1XXD128GPS Optane Memory 200 Series PMEM Module 3200 DDR4 RAM picture

x4 Intel 128GB NMB1XXD128GPS Optane Memory 200 Series PMEM Module 3200 DDR4 RAM

$329.99