Page 1 of 1

[SOLVED] sshd: "algorithm negotiation fail"

PostPosted: Mar 24th, '20, 21:53
by vmunich
Hi everyone,

I installed OpenSSH on my Mageia machines and I can login using ssh from one machine into the other.

What I cannot do is e.g. use a different system (android smartphone...) for logging into any of the Mageia machine using SSH...

I always get the message "algorithm negotiation fail"

How should I configure my SSH server on the Mageia machines so that they can be reach by most other device - and still be secure ???

Thanks a lot !
Vincent

Re: sshd: "algorithm negotiation fail"

PostPosted: Mar 24th, '20, 23:45
by doktor5000
The question is probably more, what ssh client are you using on your smartphone, what algorithms does it support, and how can you make it accept the more secure algorithms ?
A log excerpt of a connection attempt would show most of that, maybe you can try to post one.

[SOLVED] Re: sshd: "algorithm negotiation fail"

PostPosted: Mar 25th, '20, 16:00
by vmunich
Thanks Doktor for your reply.
It seems that th eproblem lies with the android client (JuiceSSH).

I found the following possible explanation online:
" the SSH library we are using (JSch) is ignoring best practices specified in RFC4253. Specifically, when it encounters an unknown SSH message type, rather than sending SSH_MSG_UNIMPLEMENTED and continuing, it's throwing an exception and bailing out."

I tried connecting per SSH using another android client (Termius) and it works perfectly...

Thanks, problem solved
V