LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (http://www.linuxquestions.org/questions/linux-general-1/)
-   -   Fedora 12 boots but get stuck at ssh1 host key generation (http://www.linuxquestions.org/questions/linux-general-1/fedora-12-boots-but-get-stuck-at-ssh1-host-key-generation-797156/)

Linuxnube88 03-22-2010 08:18 PM

Fedora 12 boots but get stuck at ssh1 host key generation
 
I'm very new to linux and thought i would try fedora instead of keeping my old win XP Pro and installed the 32bit fedora on my computer's main hard drive now it boots up just fine but when it get to the splash logo and stuff it freezes up, i went into interactive boot mode, "i" or whatever so i did that and then it stops at Generating ssh1 host key... how do i fix the freeze? and if i can't then can i get around it i know it's a security thing but i just want my computer to work again... thank you for your time

*edit ok so its freezing sooner now at the Hal Daemon service. it seems to be stopping sooner and sooner. every time i try a new method i wait for my pc to cool down entirely incase its a heat issue but it doesn't look like it.

**update
i reinstalled with the same cd i used to install in the first place and instead of a guided partition which leads LVM i manually set up my partition as 100mb boot and 2X my ram being swap and the rest going to a general partition.Doing so has brought me back to the SSH1 RSA host key generating thing. i've used the noapic and nolapic to see if that would help but to no avail.


***System Specs & such
Mobo= Supermicro X5DAL-G/X5DAL-TG2
CPU= 2 Intel Xeon 3.06 single core CPU's (hyper threading disabled)
Ram=2 GB paired ram
HD=1 200gb Maxtor and two 160gb Western Digital in Raid 0
Audio Card= Creative Soundblaster Audigy2 platinum pro w/ext
Videocard=HIS ATI Radeon 3650HD 512mb AGP card
is there anything else i should list???
Network= two ethernet ports and a wireless card plugged in a pci slot

****update to the updates...erm
i tried a fedora live CD to see if i could look at the ssh files but i can't load a live cd of fedora and i can load ubuntu inconsistently via usb this is starting to look more and more like a hardware problem but if it was then why is it always during the ssh key generation?

smoker 03-23-2010 02:29 AM

Have you got nvidia graphics ?
If so try adding nomodeset to the kernel options at boot.
If that doesn't work, try rdblacklist=nouveau instead.

Another thing to try is to add 1 to the kernel options and see if you can boot into single user mode. If you get that far then enter
Code:

telinit 3
You'll have to login now.

If you get that far then enter
Code:

telinit 5
(as root)
That is graphical mode, so if it's a graphics related problem, it will show up then.
Not 100% definitely graphics related, but it's a good indicator.

Linuxnube88 03-23-2010 10:18 AM

I have an ATI radeon 3650 agp card, i was thinkin it might still be graphics so i tried the nomodset and added 1 to boot options, it got to the bash part as long as i added the single user mode but when i went to multi user mode it stopped at the ssh key generation

** also i forgot to mention it sooner but i tried using an fedora 11 to see if it just that the current kernel was the prob but using Fedora 11 resulted in the same thing as 12 and i wind up freezing at the ssh hosy key gen

Linuxnube88 03-23-2010 11:28 AM

I've searched the web for similar problems to this but no one else seems to have consistently froze at the ssh host key generation at startup, could it just be my computer? or am i missing something essential when i install Fedora or ubuntu?

smoker 03-23-2010 12:13 PM

You could try this how to for ATI graphics
http://gofedora.com/how-to-install-a...ers-fedora-11/

Here are some more kernel options to try
http://fedoraproject.org/wiki/Featur..._Documentation

Linuxnube88 03-23-2010 12:43 PM

ok things are even weirder now so i have loaded Default bios settings and several things happened. 1) amongst my advanced processor settings i have a new option to enable the L3 cache of my processors as well as enabled compatible FPU code 2)in my boot order my raid configuration is actually appearing amongst the boot options instead of the hard drives from the raid being listed individually. 3)Fedora actually started up completely... i think i have gremlins or soemthing in my computer...

*update
Fedora booted once and didn't recognize my raid 0 array when i was playing around with it and i think that was a partitioning error on my part, aside from that, it only booted once and then the second time i booted i was left with no boot options just the command line for GRUB. not sure what happened there

Linuxnube88 03-24-2010 04:09 PM

back to square one yet again with ssh1 freezing... im thinking this is a hardware issue or possibly a kernel issue does anyone know a distribution of linux thats a sure thing that will work on most systems?

ezekieldas 03-24-2010 05:02 PM

Quote:

Originally Posted by Linuxnube88 (Post 3910857)
back to square one yet again with ssh1 freezing... im thinking this is a hardware issue or possibly a kernel issue does anyone know a distribution of linux thats a sure thing that will work on most systems?

You'll find different issues with different distros. You will always encounter issues like this regardless of distro, OS, etc.

Goto single user, or rescue --whatever will let you get a shell and edit files. See /etc/init.d/sshd --comment out KEYGEN=/usr/bin/ssh-keygen
This wil prevent consecutive keygen routines from running. Reboot and see what happens. If you can boot fine then run ssh-keygen and see what's happening. I'll bet there's an issue with your memory (RAM).

Bear in mind that ssh is only necessary if you want to safely/securely access the system remotely.

Linuxnube88 03-24-2010 11:14 PM

Quote:

Originally Posted by ezekieldas (Post 3910926)
You'll find different issues with different distros. You will always encounter issues like this regardless of distro, OS, etc.

Goto single user, or rescue --whatever will let you get a shell and edit files. See /etc/init.d/sshd --comment out KEYGEN=/usr/bin/ssh-keygen
This wil prevent consecutive keygen routines from running. Reboot and see what happens. If you can boot fine then run ssh-keygen and see what's happening. I'll bet there's an issue with your memory (RAM).

Bear in mind that ssh is only necessary if you want to safely/securely access the system remotely.

ok so i understood part of that. Could you tell me the full location of the ssh file in the folders? what do i type before the /etc folder?


**update
ok so i figured out you mount all the file systems with "mount -a" and use the "vi" command and the pathname which happened to be the "/etc/init.d/sshd" sorry total newbie here :P so now for next newbie question, how do i comment out the KEYGEN part?

***update
found a website http://www.eng.hawaii.edu/Tutor/vi.html and it had vi commands and stuff so it was easy to figure out and i comment out the SSH with a "#" and my startup didn't freeze there but it did on the next part with sendmail

ezekieldas 03-25-2010 12:26 AM

So assuming you're able to boot single user and at least get to the system, do things like "cd /etc/init.d" and "echo foo"

Use a text editor of choice, like vi or pico. Open the /etc/init.d/sshd file in the text editor. Put a "#" on this line, so it looks like:

# KEYGEN=/usr/bin/ssh-keygen

Save the file. The files in /etc/init.d/ are read when the system boots. The modification we've just made will prevent ssh-keygen from executing when the /etc/init.d/sshd script runs.

Now reboot the system. The system should now boot to a login prompt. Login, do whatever but keep in mind sshd is probably not running and you'll eventually want to address that.

I'm pretty sure you can zero in on the issue by running ssh-keygen once you're logged in. Try something like "ssh-keygen -t dsa" and just hit return at the prompts. See what happens. Look at the file we commented above and try running the lines where $KEYGEN is called. If you can isolate where things are barfing open a thread on that specific problem in this forum or openssh.org.


All times are GMT -5. The time now is 02:01 PM.