Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 29 Jan 2016 19:48:19 -0800
From:      Craig Rodrigues <rodrigc@FreeBSD.org>
To:        =?UTF-8?Q?Dag=2DErling_Sm=C3=B8rgrav?= <des@freebsd.org>
Cc:        "src-committers@freebsd.org" <src-committers@freebsd.org>,  "svn-src-all@freebsd.org" <svn-src-all@freebsd.org>, svn-src-vendor@freebsd.org
Subject:   Re: svn commit: r294315 - in vendor-crypto/openssh/dist: . contrib/redhat contrib/suse
Message-ID:  <CAG=rPVdGhnweO6PzvJY4Vx_CQP7Hu4k4BSWjFmxzHPG_qtzppQ@mail.gmail.com>
In-Reply-To: <201601191010.u0JAAw3O039299@repo.freebsd.org>
References:  <201601191010.u0JAAw3O039299@repo.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Jan 19, 2016 at 2:10 AM, Dag-Erling Sm=C3=B8rgrav <des@freebsd.org>
wrote:

> Author: des
> Date: Tue Jan 19 10:10:58 2016
> New Revision: 294315
> URL: https://svnweb.freebsd.org/changeset/base/294315
>
> Log:
>   Vendor import of OpenSSH 7.1p2.
>


Hi,

I'm not sure if this is the exact commit, but sometime around this commit,
I have started seeing some failures in some scripts that I have running.
These scripts build and boot a VM, and try to SSH into the VM to run some
tests.

It turns out that sshd is not starting properly, so the tests fail to SSH
into the VM:

https://jenkins.freebsd.org/job/FreeBSD_HEAD/54/execution/node/43/log/

>From last night's build, I was able to boot the VM, and log into the VM
console.

If I tried to manually start sshd, I got this:

#  service sshd restart

Performing sanity check on sshd configuration.
Fssh_key_load_public: invalid format
Could not load host key: /etc/ssh/ssh_host_rsa_key
Could not load host key: /etc/ssh/ssh_host_dsa_key
Fssh_key_load_public: invalid format
Could not load host key: /etc/ssh/ssh_host_ecdsa_key
Fssh_key_load_public: invalid format
Could not load host key: /etc/ssh/ssh_host_ed25519_key
Disabling protocol version 2. Could not load host key
sshd: no hostkeys available -- exiting.


Some observations:
    - these do not exist:
                /etc/ssh/ssh_host_dsa_key
               /etc/ssh/ssh_host_ecdsa_key
   - these files exist:
           -rw-------  1 root  wheel   227 Jan 25 21:34
/etc/ssh/ssh_host_ecdsa_key
           -rw-------  1 root  wheel   387 Jan 25 21:34
/etc/ssh/ssh_host_ed25519_key
           -rw-------  1 root  wheel  1679 Jan 25 21:34
/etc/ssh/ssh_host_rsa_key

      but they seem to be all zeroes

The VM that I configured is nothing fancy.  It just has this in
/etc/rc.conf:


sshd_enable=3D"YES"
ifconfig_vtnet0=3D"inet 192.168.10.2/24"


Any ideas as to what the problem might be?

--
Craig



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