Henrik Holmberg - 2016-07-04

Hi

Hope a newbie can get a little help with activating a kexalgorithm.

I have enabled this:

bash-4.3$ ./ssh -Q kex
diffie-hellman-group1-sha1
diffie-hellman-group14-sha1
diffie-hellman-group-exchange-sha1
diffie-hellman-group-exchange-sha256
ecdh-sha2-nistp256
ecdh-sha2-nistp384
ecdh-sha2-nistp521
curve25519-sha256@libssh.org (link sends e-mail)

I need to recive a file from a server running Java (JSCH-0.1.50), but they can't log on.
In the log i get:

Connection from x.x.x.x port 50784 on y.y.y.y port 22
debug1: Client protocol version 2.0; client software version JSCH-0.1.50
debug1: no match: JSCH-0.1.50
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_7.1
debug1: list_hostkey_types: ssh-rsa,ecdsa-sha2-nistp256,ssh-ed25519 [preauth]
debug1: SSH2_MSG_KEXINIT sent [preauth]
debug1: SSH2_MSG_KEXINIT received [preauth]
debug1: kex: client->server aes128-ctr hmac-sha1 zlib@openssh.com (link sends e-mail) [preauth]
debug1: kex: server->client aes128-ctr hmac-sha1 zlib@openssh.com (link sends e-mail) [preauth]
Unable to negotiate with x.x.x.x: no matching key exchange method found.
Their offer: diffie-hellman-group1-sha1,diffie-hellman-group-exchange-sha1 [preauth]
debug1: do_cleanup [preauth]