mirror of
https://git.yoctoproject.org/poky
synced 2026-04-20 09:32:13 +02:00
openssh: update init script to create ECDSA keys if needed
* Starting with openssh-5.8p1, the server will default to a newer key algorithm (ECDSA). (From OE-Core rev: 998e3acf0d38007fde10f47f98b71192685e19b9) Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
bb4a5c44da
commit
0a27b8b76d
@@ -36,6 +36,10 @@ check_keys() {
|
||||
echo " generating ssh RSA key..."
|
||||
ssh-keygen -q -f /etc/ssh/ssh_host_rsa_key -N '' -t rsa
|
||||
fi
|
||||
if [ ! -f /etc/ssh/ssh_host_ecdsa_key ]; then
|
||||
echo " generating ssh ECDSA key..."
|
||||
ssh-keygen -q -f /etc/ssh/ssh_host_ecdsa_key -N '' -t ecdsa
|
||||
fi
|
||||
if [ ! -f /etc/ssh/ssh_host_dsa_key ]; then
|
||||
echo " generating ssh DSA key..."
|
||||
ssh-keygen -q -f /etc/ssh/ssh_host_dsa_key -N '' -t dsa
|
||||
|
||||
@@ -7,7 +7,7 @@ SECTION = "console/network"
|
||||
LICENSE = "BSD"
|
||||
LIC_FILES_CHKSUM = "file://LICENCE;md5=bae9a689be41581503bcf95d8fb42c4e"
|
||||
|
||||
PR = "r1"
|
||||
PR = "r2"
|
||||
|
||||
DEPENDS = "zlib openssl"
|
||||
DEPENDS += "${@base_contains('DISTRO_FEATURES', 'pam', 'libpam', '', d)}"
|
||||
|
||||
Reference in New Issue
Block a user