[Bug 876910] Re: When starting open ssh server without host keys in /etc/ssh/, the keys are not automatically generated.
Jon
876910 at bugs.launchpad.net
Tue Oct 18 01:54:01 UTC 2011
After further testing, determined that my patch did not actually resolve
the issue.
Seems to be an issue with triggering the following sub:
check_rsa_keys () {
#Checks for the existance of RSA keys and generates them if necessary
RSA1_KEY=/etc/ssh/ssh_host_key
RSA_KEY=/etc/ssh/ssh_host_rsa_key
DSA_KEY=/etc/ssh/ssh_host_dsa_key
if [ ! -s $RSA_KEY ] || [! -s $RSA1_KEY] || [! -s $DSA_KEY]; then
exec /usr/sbin/dpkg-reconfigure openssh-server
fi
}
Initially, I had added the above if/then statement to my /etc/init.d/ssh
script towards the beginning (starting at line 13 to be exact) before I
created the subroutine and the patch.
Pardon my blonde moment.
That being said, -where- can we add a check for the existence of the
host keys?
--
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to openssh in Ubuntu.
https://bugs.launchpad.net/bugs/876910
Title:
When starting open ssh server without host keys in /etc/ssh/, the keys
are not automatically generated.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/openssh/+bug/876910/+subscriptions
More information about the Ubuntu-server-bugs
mailing list