I have tried the steps you suggested. The output I receive with sshd -T | grep kex
shows only the desired kex methods.
Still, if I try ssh -vvvv localhost
I get gss-gex-sha1- and gss-group1-sha1- in the list (below ‘debug2: peer server KEXINIT proposal’)
I also tried this on two other different machines (non-UCS, Debian 9 and Debian 10). I get the same list there by executing sshd -T | grep kex
but when using ssh -vvvv localhost, gss-gex-sha1- and gss-group1-sha1- do NOT occur.
Any further ideas?
Thank you very much!
Kind regards,
Thomas Teves
P.S. Just for the record (and other people with the same problem): the correct command for re-creating the config file would be ucr commit /etc/ssh/sshd_config.
indeed you are right, I corrected the commit command.
Regarding your question: I just tried the same, but for me the offered algorithms do change as desired, so I unable to give more specific advice - Maybe a service or even a server restart might help too? Does this change when you try to login from a remote machine instead of localhost?
Hey,
I think we found the root for those weak methods.
In the currently used old stable openssh version 7.9p1 GSSAPIKeyExchange seems to be enabled by default.