[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#845042: openssh-server: Generates invalid ecdsa host keys



Package: openssh-server
Version: 1:7.3p1-3+b1

Dear maintainer:

On some systems, openssh-server postinst fails to generate correct
ECDSA host keys:

# cd /etc/ssh
# mkdir old
# mv ssh_host_* old
# dpkg-reconfigure openssh-server
Creating SSH2 RSA key; this may take some time ...
2048 SHA256:3PgohzCO+G9rxwV8u8G1g3Er1nJU0+Hx34aGSFpoV18 root@mymachine (RSA)
Creating SSH2 ECDSA key; this may take some time ...
/etc/ssh/ssh_host_ecdsa_key.pub is not a public key file.

I can always reproduce this in some machines and never in some others.

I attach a pair of (wrongly generated) keys in case they could be useful
to debug this.

Thanks.
ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBKXa7AmJqSutzd/0xiKpHUb9Od0FZmGBOW7CowUItSeoa2Y7mz/K5V/PLUy6Xr/pxcMvIVMIwR4dt67ZPxSobHk= root@mymachine
-----BEGIN EC PRIVATE KEY-----
MHcCAQEEIO2DM9bZ5fTp5wOgX3qCIm0+U3ZUc+3kwjpLA6dRWwDSoAoGCCqGSM49
AwEHoUQDQgAEpdrsCYmpK63N3/TGIqkdRv053QVmYYE5bsKjBQi1J6hrZjubP8rl
X88tTLpev+nFwy8hUwjBHh23rtk/FKhseQ==
-----END EC PRIVATE KEY-----

Reply to: