Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Use RSA host keys instead of DSA #485
OpenSSH 7.x deprecated DSA keys, requiring them now to be explicitly allowed via the "HostKeyAlgorithms" option. For more info, see:
As the SSH daemon most often will be used on localhost, it will often be used with the OpenSSH client. The slow upgrade process of enterprise distros has left OpenSSH on 6.x, but this has already changed for Ubuntu 16.04 LTS, and the next versions of Debian & RHEL will be 7.x too.
This patch resolves this problem by replacing DSA with RSA (which has wider compatibility than elliptic curve) for key generation.
Tests have also been modified so the client only uses host key algorithms that both appear in the JSch supported algorithms list and OpenSSH 7 default HostKeyAlgorithms list.