openssh-server: deprecate the ecdsa HostKey 12093/head
authorPhilip Prindeville <philipp@redfish-solutions.com>
Tue, 5 May 2020 23:21:59 +0000 (17:21 -0600)
committerPhilip Prindeville <philipp@redfish-solutions.com>
Wed, 6 May 2020 00:03:56 +0000 (18:03 -0600)
commit73fa0c963d5de83f40f62a371e6921129e82b104
tree50ebe17709a8f573f53eb5335e9ec4ba0ed1caa3
parent76f5cf1a28f645680af0dfc2a83202e494f94076
openssh-server: deprecate the ecdsa HostKey

The init.d script for sshd never generates an ecdsa HostKey as seen
here:

for type in rsa ed25519
do
# check for keys
key=/etc/ssh/ssh_host_${type}_key
[ ! -f $key ] && {
# generate missing keys
[ -x /usr/bin/ssh-keygen ] && {
/usr/bin/ssh-keygen -N '' -t $type -f $key 2>&- >&-
}
}
done

so we'll never succeed at loading one.  Get rid of the resultant
error message in logging:

May  5 17:13:59 OpenWrt sshd[20070]: error: Unable to load host key: /etc/ssh/ssh_host_ecdsa_key

Signed-off-by: Philip Prindeville <philipp@redfish-solutions.com>
net/openssh/Makefile