Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 10 Apr 2002 22:26:34 -0700
From:      Peter Wemm <peter@wemm.org>
Cc:        Dag-Erling Smorgrav <des@ofug.org>, cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   Re: cvs commit: src/etc rc.network 
Message-ID:  <20020411052634.523DD3810@overcee.wemm.org>
In-Reply-To: <20020411051611.9A8A63810@overcee.wemm.org> 

next in thread | previous in thread | raw e-mail | index | archive | help
Peter Wemm wrote:
> Dag-Erling Smorgrav wrote:
> > Peter Wemm <peter@FreeBSD.org> writes:
> > >   Log:
> > >   Since sshd expects /etc/ssh/ssh_host_rsa_key to exist, we had better
> > >   create it.  Also specify protocol v1/v2 in case people wonder why we
> > >   generate two RSA keys.
> > 
> > No!  This was omitted on purpose.  Please back it out.
> 
> Well then, please fix sshd so that it stops complaining about it missing
> at startup!

More constructively, here's the error message:
peter@ref5[10:23pm]~-5# /usr/sbin/sshd
Could not load host key: /etc/ssh/ssh_host_rsa_key

The sshd_config is purely default:

peter@ref5[10:23pm]~-6# grep HostKey /etc/ssh/sshd_config 
# HostKey for protocol version 1
#HostKey /etc/ssh/ssh_host_key
# HostKeys for protocol version 2
#HostKey /etc/ssh/ssh_host_rsa_key
#HostKey /etc/ssh/ssh_host_dsa_key

Also, can you fix this while you're there?  Logging in causes this:

Apr 10 18:06:56 ref5 sshd[540]: in _openpam_check_error_code(): %s(): unexpected return value %d(): unexpected return value 673339764 

peter@ref5[10:25pm]~-8# diff /etc/pam.d/sshd /usr/src/etc/pam.d/sshd 
peter@ref5[10:25pm]~-9# cd /usr/src/etc; cvs -R diff -u sshd
@@ -6,6 +6,7 @@
 
 # auth
 auth           required        pam_nologin.so  no_warn
+auth           sufficient      pam_krb5.so     no_warn
 auth           required        pam_unix.so     no_warn try_first_pass
 
 # account

Cheers,
-Peter
--
Peter Wemm - peter@wemm.org; peter@FreeBSD.org; peter@yahoo-inc.com
"All of this is for nothing if we don't go to the stars" - JMS/B5


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020411052634.523DD3810>