net-misc/openssh: add warnings about key support in newer versions #557388
authorMike Frysinger <vapier@gentoo.org>
Thu, 13 Aug 2015 02:53:56 +0000 (22:53 -0400)
committerMike Frysinger <vapier@gentoo.org>
Thu, 13 Aug 2015 02:53:56 +0000 (22:53 -0400)
net-misc/openssh/openssh-7.0_p1.ebuild

index f3bfefd74d37d9356b278457d17bccf93910fb48..e7d3760dab02b55a96e85d4289952110f13e1851 100644 (file)
@@ -309,4 +309,16 @@ pkg_postinst() {
                elog "Make sure to update any configs that you might have.  Note that xinetd might"
                elog "be an alternative for you as it supports USE=tcpd."
        fi
+       if has_version "<${CATEGORY}/${PN}-7.1_p1" ; then #557388
+               elog "Starting with openssh-7.0, support for ssh-dss keys were disabled due to their"
+               elog "weak sizes.  If you rely on these key types, you can re-enable the key types by"
+               elog "adding to your sshd_config:"
+               elog "  PubkeyAcceptedKeyTypes=+ssh-dss"
+               elog "You should however generate new keys using rsa or ed25519."
+       fi
+       if ! use ssl && has_version "${CATEGORY}/${PN}[ssl]" ; then
+               elog "Be aware that by disabling openssl support in openssh, the server and clients"
+               elog "no longer support dss/rsa/ecdsa keys.  You will need to generate ed25519 keys"
+               elog "and update all clients/servers that utilize them."
+       fi
 }