Results 1 to 7 of 7

Thread: start sshd at boot time

Hybrid View

  1. #1
    Member registered user
    Join Date
    Mar 2004
    Posts
    46

    start sshd at boot time

    I use floppyconfig to boot.
    How do I configure Knoppix to start sshd and generate keys - at boot time?
    Assuming that I save my knoppix configuration before the re-boot.

    I looked at various posts for sshd but being new to knoppix I had difficulty understanding the steps.

    I need a simple and fast way to do this.

  2. #2
    Senior Member registered user
    Join Date
    Mar 2004
    Posts
    1,516
    i have posted a scrip on this forum somewhere, it does almost what you want.
    First it gives me Swedish keyboard, then it generates the keys (new every boot), then it starts sshd and asks for a password for knoppix (i use it to setup a cdbased sftpsession asap).

    Code:
    loadkeys se-latin1.kmap.gz; ssh-keygen -t rsa -f /etc/ssh/ssh_host_key; ssh-keygen -t rsa -f /etc/ssh/ssh_host_rsa_key; ssh-keygen -t rsa -f /etc/ssh/ssh_host_dsa_key; sshd; passwd knoppix
    The loadkeys part you may edit to something that suits you (or remove entirely).
    If you want to save things, hmmm save the /etc/ssh directory and copy it back after reboot (with a script perhaps) then in the same scipt you can start the sshd like i did.
    was it clear ? if not ask on.

  3. #3
    Senior Member registered user
    Join Date
    Feb 2004
    Posts
    949
    would that work with anything? such as hdparm -S 2 /dev/hda

  4. #4
    Senior Member registered user
    Join Date
    Mar 2004
    Posts
    1,516
    you could put that in lilo if i remember corectly. or in a early rc. file.

  5. #5
    Senior Member registered user
    Join Date
    Feb 2004
    Posts
    949
    well i'm trying to get knoppix to do that when I boot it up, I saved the config and I was wondering if I couold edit it to do that.

  6. #6
    Member registered user
    Join Date
    Mar 2004
    Posts
    46
    a few questions:

    1. why does the /etc/ssh directory need to be saved?

    2. i saved your code on my floppy but i assume i need to run this code as root (correct?) my system logs me in as the default user knoppix
    so how do i run this script as root?

  7. #7
    Junior Member
    Join Date
    Apr 2004
    Location
    Shanghai, China
    Posts
    9
    1. The /etc/ssh directory doesn't need to be saved, but if you save it and incorporate it into the knoppix image using remastering, the keys that are generated will be the same keys evertime you boot. If you don't save them they are re-generated everytime.

    2. To login as user root, you type "sudo" before the command.

    Ex. sudo passwd knoppix

    Hope this helps

    - Robbert

Similar Threads

  1. 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
  2. start sshd automatically
    By paradox87 in forum Hdd Install / Debian / Apt
    Replies: 2
    Last Post: 06-16-2004, 11:38 PM
  3. Replies: 1
    Last Post: 04-01-2004, 03:37 AM
  4. how do I start Apache and samba at bootup time?
    By bubazoo in forum General Support
    Replies: 6
    Last Post: 11-22-2003, 06:51 AM
  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
  •  


PfSense/OPNsense 6x1Gb, Quad Core, 8GB, 128GB SSD, AES-NI, QAT (Lanner FW-7525D) picture

PfSense/OPNsense 6x1Gb, Quad Core, 8GB, 128GB SSD, AES-NI, QAT (Lanner FW-7525D)

$85.00



OPNsense pfSense 16-Core Atom C3958 16GB ECC RAM 512GB SSD 8-Port QAT AES-NI VPN picture

OPNsense pfSense 16-Core Atom C3958 16GB ECC RAM 512GB SSD 8-Port QAT AES-NI VPN

$298.00



Cisco ASA 5506-X Network Security Firewall Appliance with FirePOWER Services picture

Cisco ASA 5506-X Network Security Firewall Appliance with FirePOWER Services

$49.99



Cisco ASA 5506-X Network Security Firewall Appliance- No Adapter picture

Cisco ASA 5506-X Network Security Firewall Appliance- No Adapter

$50.00



Fortinet FortiGate FortiWiFi 80F Network Security Firewall (FG-80F) picture

Fortinet FortiGate FortiWiFi 80F Network Security Firewall (FG-80F)

$73.49



OPNsense pfSense 8-Core Atom C3758 2.2GHz 8GB DDR4 64GB SSD 8x NIC QAT AES VPN picture

OPNsense pfSense 8-Core Atom C3758 2.2GHz 8GB DDR4 64GB SSD 8x NIC QAT AES VPN

$145.00



10GbE OPNsense Firewall VPN AES QAT 4-Core Atom C3558 2.20GHz 8GB DDR4 128GB SSD picture

10GbE OPNsense Firewall VPN AES QAT 4-Core Atom C3558 2.20GHz 8GB DDR4 128GB SSD

$165.00



PfSense/OPNsense - 2x1Gb, 4x2.5Gb, 2x10Gb, C3558, 4GB, 128GB NVMe, AES-NI, QAT picture

PfSense/OPNsense - 2x1Gb, 4x2.5Gb, 2x10Gb, C3558, 4GB, 128GB NVMe, AES-NI, QAT

$259.00



Zero Trace Pen: All-in-one Tor Network Anonymous Drive + Cryptocurrency Wallet picture

Zero Trace Pen: All-in-one Tor Network Anonymous Drive + Cryptocurrency Wallet

$147.00



SonicWall SOHO Wireless Network Security Appliance 01-SSC-0218 picture

SonicWall SOHO Wireless Network Security Appliance 01-SSC-0218

$199.00