Bug 445547

Summary: sshd install doesn't setup keys
Product: [Fedora] Fedora Reporter: David Wilson <david>
Component: opensshAssignee: Tomas Mraz <tmraz>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: rawhide   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-05-07 17:03:27 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description David Wilson 2008-05-07 15:00:13 UTC
Description of problem:

On FC9 Preview when a 'yum install sshd' is done there are no keys installed.
I did the following:

ssh-keygen -t rsa -f /etc/ssh/ssh_host_rsa_key
ssh-keygen -t dsa -f /etc/ssh/ssh_host_dsa_key
ssh-keygen -t rsa1 -f /etc/ssh/ssh_host_key
 


Version-Release number of selected component (if applicable):
FC9 - Preview

How reproducible:
Very

Steps to Reproduce:
1.  install sshd
2.  Look in /etc/ssh/ to see if any keys are there
3.  None found
  
Actual results:

sshd will refuse to start without the keys
Expected results:
I would expect the install script to install sshd and enable it in the startup
scripts and start the program after it is installed. 

Additional info:

Comment 1 Bill Nottingham 2008-05-07 17:03:27 UTC
This is done by the sshd startup script, not the package installation.

Comment 2 David Wilson 2008-05-07 20:02:26 UTC
It certainly didn't install the keys when I started it.  I tried running it and
it complained about keys not being there.

Comment 3 Tomas Mraz 2008-05-12 13:00:30 UTC
How did you try to run sshd?

I cannot reproduce your problem here. If there are no keys in /etc/ssh/ then
'service sshd start' finely generates the keys for me.