Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
Pages: (2) </ [1] 2 >/

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: don't re-gen SSH keys, Stop DSL from re-generating SSH keys< Next Oldest | Next Newest >
josiahbryan Offline





Group: Members
Posts: 11
Joined: Oct. 2006
Posted: Dec. 10 2007,14:31 QUOTE

I've got DSL installed on a CF card, booting onto a PC-104 processor board. The problem is that every time DSL boots, it wants to re generate SSH keys, which takes 1-2 minutes every boot. I've got the ssh keys stored in the backup.tar.gz - but  that doesn't get uncompressed till after the keys are generated anyway. Is there any cheat codes or other method of turning off the ssh key generation? Or even just turning off SSH all together? (I can then start the daemon through the bootlocal.sh script.) Any help is appreciated.
Back to top
Profile PM 
roberts Offline





Group: Members
Posts: 4983
Joined: Oct. 2003
Posted: Dec. 10 2007,15:37 QUOTE

Keys are generated when starting ssh if they, the keys, are not present, they are generating everytime. You must have the ssh boot option in the append section of your bootloader.

Since obviously booting occurs before restore, the keys would be generated. Move the start ssh after the restore, i.e., opt/bootlocal.sh.


Edited by roberts on Dec. 10 2007,16:18
Back to top
Profile PM WEB 
josiahbryan Offline





Group: Members
Posts: 11
Joined: Oct. 2006
Posted: Dec. 10 2007,15:57 QUOTE

I understand what you're saying - problem is, I find no mention of the ssh option in either lilo.conf or menu.1st.

See, another engineer at my firm did the original disk image for this board, and I'm not sure exactly how he installed DSL on the CF card. I've just re-imaged new CF cards from his CF card whenever needed. Therefore, I'm not sure how to change the boot options or even what bootloader is used.

I think its grub (the bootloader), but no menu comes up when it boots.  Any advice on determining the boot loader?

By the way, here is the relevant default entry from menu.1st. As you can see, no mention of ssh in the list - unless its in some other config file.


title DSL
kernel /boot/linux24 root=/dev/hda2 quiet vga=normal noacpi noapm nodma noscsi frugal
initrd /boot/minirt24.gz


Likewise, /etc/lilo.conf has:

image=/vmlinuz
       append="lang=de apm=power-off hda=scsi hdb=scsi hdc=scsi hdd=scsi hde=scsi hdf=scsi hdg=scsi hdh=scsi vga=791 quiet BOOT_IMAGE=knoppix"
       root=/dev/hda5
       label=Knoppix
       read-write

Again, no mention of ssh. I don't think it boots lilo because the vga mode is not the same as seen on the CRT - currently it looks like vga 768 - and it doesn't give any "undefined mode number" errors, which leads me to believe it doesn't even try to set vga=791, therefore it probably boots using grub.

So, back to the start, since grub doesn't list ssh explicitly, is there a way to explicitly turn OFF ssh?

Sorry for the ignorance displayed here -trying to learn the best I can. Thanks for the help. Cheers!

-josiah
Back to top
Profile PM 
roberts Offline





Group: Members
Posts: 4983
Joined: Oct. 2003
Posted: Dec. 10 2007,16:24 QUOTE

Are asking for support on a customized remastered DSL?
Hard to say where one might have ssh starting,

/etc/init.d/knoppix-autoconfig?
/etc/init.d/dsl-config?
/etc/init.d/rc5.d/?

If it is embedded in the remastered iso, then not much you can do but remaster again unless you find that there is indeed an option to not boot with ssh.   Or you choose to upgrade to a supported version of DSL.
Back to top
Profile PM WEB 
^thehatsrule^ Offline





Group: Members
Posts: 3275
Joined: July 2006
Posted: Dec. 10 2007,16:30 QUOTE

It's menu.lst (L, not a 1) and you're probably seeing the default/template configs.
If you aren't being shown which bootloader you're using during boot, it might be hard to find out...

Looks like a frugal, if you're using grub, look in /cdrom/boot/grub/menu.lst and modify some settings there, and see if they change your next reboot.
For lilo, the settings are stored only on the mbr (no backup of the lilo.conf is done by default iirc) and I'm not sure if you can read them manually...
Of course, it could be using a different bootloader all together.
Back to top
Profile PM 
9 replies since Dec. 10 2007,14:31 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

Pages: (2) </ [1] 2 >/
reply to topic new topic new poll
Quick Reply: don't re-gen SSH keys

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code