SSH error "can't agree on KEX algorithms"
-
Hello
Has anyone experienced following issue: I have set NetXms to poll Mikrotik router via ssh and each time when attempt is made, router generates error "can't agree on KEX algorithms". When i log in manualy via ssh, then no error. Seems like it started with NetXms version 3.5.90. It used to work on older version and polling script hasent changed.
Egert
-
So when router generates this error the connection does not happen and data is not collected?
-
Hi,
in 3.4 we have added reading SSH config by SSH subagent - could it be that you have something configured there? Also, what KEX algorithms this Mikrotik supports? You can run ssh with -v option and check it. This is sample output from my router:
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: algorithm: diffie-hellman-group-exchange-sha256Best regards,
Victor -
ssh debug from router: https://ibb.co/pwxSv02
-
Looks like router supports only ssh-dss and ssh-rsa as host key algorithms and they are not offered by client. You may try to add
HostKeyAlgorithms +ssh-rsa
to your .ssh/config file, or create separate config file for SSH subagent with that line and specify it in nxagentd.conf by adding
ConfigFile = path_to_config
in section [SSH].
Best regards,
Victor -
-
In agent config you should specify path to SSH config - you cannot just put SSH configuration options to NetXMS agent config. So in nxagentd.conf you should have something like
[SSH] ConfigFile = /etc/nxagentd-ssh-configand in file /etc/nxagentd-ssh-config
HostKeyAlgorithms +ssh-rsaBest regards,
Victor -
-
-
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login
Would be quite bad if Netxms support for Mikrotik ssh is broken.