no match for method server host key algo

Viewed 952

I'm trying to connect a SSH client to a SSH server which uses NETCONF over SSH, named netopeer2. this open-source project uses OpenSSH for connecting to clients.

my client supports various types of connecting, including ssh2 - sshj and ssh2 - ganymed.

by choosing the first option, everything is fine; but while choosing the second one (which is ganymed) this error occures:

[ERR]: LN: SSH key exchange error (kex error:
no match for method server host key algo: server [rsa-sha2-512,rsa-sha2-256], client [ssh-rsa,ssh-dss])

As this method is the proper one for my requirements, I've tried to add the requested algorithm to OpenSSH by the following command:

ssh -oHostKeyAlgorithms=+ssh-rsa <username>@<host>

while no error is received after that command, still the same error exists when trying to connect by the new algorithm.

Is there any other way for adding algorithms to Netopeer2 and OpenSSH?

=============

Update:

adding configuration to ssh_config does not have any effect on Netopeer2 connection, it affects OS ssh itself.

0 Answers
Related