-
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.
-
Senior Member
registered user
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.
-
Senior Member
registered user
would that work with anything? such as hdparm -S 2 /dev/hda
-
Senior Member
registered user
you could put that in lilo if i remember corectly. or in a early rc. file.
-
Senior Member
registered user
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.
-
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?
-
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
-
By lothario in forum Hdd Install / Debian / Apt
Replies: 8
Last Post: 08-18-2004, 09:14 PM
-
By paradox87 in forum Hdd Install / Debian / Apt
Replies: 2
Last Post: 06-16-2004, 11:38 PM
-
By joekm in forum General Support
Replies: 1
Last Post: 04-01-2004, 03:37 AM
-
By bubazoo in forum General Support
Replies: 6
Last Post: 11-22-2003, 06:51 AM
-
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
-
Forum Rules
![Dell PowerEdge R730 2x E5-2699V3 2.3Ghz 36 Core 128GB RAM H730 X520-I350 2x750W picture](/store/img/g/W38AAOSwtcVjVC0Z/s-l225/Dell-PowerEdge-R730-2x-E5-2699V3-2-3Ghz-36-Core-12.jpg)
Dell PowerEdge R730 2x E5-2699V3 2.3Ghz 36 Core 128GB RAM H730 X520-I350 2x750W
$329.99
![Dell PowerEdge R630 Server 2x E5-2680 V4 = 28 Cores S130 32GB RAM NEW 480GB SSD picture](/store/img/g/vx0AAOSwvwFlExVY/s-l225/Dell-PowerEdge-R630-Server-2x-E5-2680-V4-28-Cores-.jpg)
Dell PowerEdge R630 Server 2x E5-2680 V4 = 28 Cores S130 32GB RAM NEW 480GB SSD
$197.99
![Dell PowerEdge R630 Server 2x E5-2640v3 2.60Ghz 16-Core 64GB H330 picture](/store/img/g/ZD0AAOSwm41mOZYw/s-l225/Dell-PowerEdge-R630-Server-2x-E5-2640v3-2-60Ghz-16.jpg)
Dell PowerEdge R630 Server 2x E5-2640v3 2.60Ghz 16-Core 64GB H330
$182.65
![Dell Poweredge R630 Server 2x E5-2620 V4 =16 Cores | S130 | 32GB RAM | 2x trays picture](/store/img/g/GAcAAOSw9Q1mGSZW/s-l225/Dell-Poweredge-R630-Server-2x-E5-2620-V4-16-Cores-.jpg)
Dell Poweredge R630 Server 2x E5-2620 V4 =16 Cores | S130 | 32GB RAM | 2x trays
$159.99
![DELL POWEREDGE R630 8 x 2.5'' 2X E5-2680V4 32GB RAM IDRAC ENT & NDC 2X 495W PSU picture](/store/img/g/mkkAAOSwE5ZmT1Cg/s-l225/DELL-POWEREDGE-R630-8-x-2-5-2X-E5-2680V4-32GB-RAM-.jpg)
DELL POWEREDGE R630 8 x 2.5'' 2X E5-2680V4 32GB RAM IDRAC ENT & NDC 2X 495W PSU
$184.95
![Dell PowerEdge R720xd 26HDD 300gb 2.5-inch E5-2697 X 2CPU 384RAM 7.2 Tb HDD  picture](/store/img/g/yAwAAOSwdyNlgQ8d/s-l225/Dell-PowerEdge-R720xd-26HDD-300gb-2-5-inch-E5-2697.jpg)
Dell PowerEdge R720xd 26HDD 300gb 2.5-inch E5-2697 X 2CPU 384RAM 7.2 Tb HDD 
$180.00
![Dell PowerEdge R620 Server - 256GB RAM, 2x8cCPU, 120Gb SSD/3x900Gb SAS, Proxmox picture](/store/img/g/480AAOSw9TVl9vAv/s-l225/Dell-PowerEdge-R620-Server-256GB-RAM-2x8cCPU-120Gb.jpg)
Dell PowerEdge R620 Server - 256GB RAM, 2x8cCPU, 120Gb SSD/3x900Gb SAS, Proxmox
$320.00
![Dell PowerEdge T620 8-Bay LFF Xeon E5-2660 0 2.20GHz 48GB NO HDD S110 Server picture](/store/img/g/ZfUAAOSw~TFmclF7/s-l225/Dell-PowerEdge-T620-8-Bay-LFF-Xeon-E5-2660-0-2-20G.jpg)
Dell PowerEdge T620 8-Bay LFF Xeon E5-2660 0 2.20GHz 48GB NO HDD S110 Server
$174.99
![Dell Poweredge R630 2x Xeon E5-2680 v4 2.4ghz 28-Cores / 128gb / H330 / 2x 1TB picture](/store/img/g/7XkAAOSwnhFkFNvU/s-l225/Dell-Poweredge-R630-2x-Xeon-E5-2680-v4-2-4ghz-28-C.jpg)
Dell Poweredge R630 2x Xeon E5-2680 v4 2.4ghz 28-Cores / 128gb / H330 / 2x 1TB
$334.99
![Dell Poweredge R730xd LFF 14-Bay 2U Server | Choose Your CPU & RAM Config picture](/store/img/g/CdkAAOSwY0BmYMoF/s-l225/Dell-Poweredge-R730xd-LFF-14-Bay-2U-Server-Choose-.jpg)
Dell Poweredge R730xd LFF 14-Bay 2U Server | Choose Your CPU & RAM Config
$489.99