openssh: Create /etc/ssh/ssh_host_ecdsa_key if it doesn't exist
PATCH 1/1 openssh: Create /etc/ssh/ssh_host_ecdsa_key if it doesn't exist
From: Enric Balletbo i Serra <[email protected]>
After OpenSSH 5.7 the ECDSA is the preferred key algorithm when both the client and server support it.
This patch solves the error that shows:
Could not load host key: /etc/ssh_host_ecdsa_key
creating a ECDSA key if it doesn't exist.
--- .../openssh/openssh-5.8p2/init | 4 ++++ meta/recipes-connectivity/openssh/openssh_5.8p2.bb | 2 +- 2 files changed, 5 insertions(+), 1 deletions(-)
meta/recipes-connectivity/openssh/openssh-5.8p2/init +4 -0
@@ -40,6 +40,10 @@ check_keys() { echo " generating ssh DSA key..." ssh-keygen -q -f /etc/ssh/ssh_host_dsa_key -N '' -t dsa 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 } export PATH="${PATH:+$PATH:}/usr/sbin:/sbin"
meta/recipes-connectivity/openssh/openssh_5.8p2.bb +1 -1
@@ -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)}"
Signature · 1 line
1.7.1
Quoted 4 lines · Enric Balletbo i Serra
From: Enric Balletbo i Serra <[email protected]>
After OpenSSH 5.7 the ECDSA is the preferred key algorithm when both the client and server support it.
Please use right mailing list for oe-core patches..
http://lists.linuxtogo.org/pipermail/openembedded-core/2011-September/009613.html
2011/9/15 Martin Jansa <[email protected]>:
Quoted 9 lines · Enric Balletbo i Serra
Quoted 4 lines
From: Enric Balletbo i Serra <[email protected]>
After OpenSSH 5.7 the ECDSA is the preferred key algorithm when both the client and server support it.
Please use right mailing list for oe-core patches..
http://lists.linuxtogo.org/pipermail/openembedded-core/2011-September/009613.html
Sorry, I missed this ML, I was subscribed to openembedded MLt but not oe-core ML, lots of list and sometimes don't known where to send the patches.
Best regards,
Enric