problem: you want to connecto to a legacy / old client something like an old switch > but you get the message: Bad server host key: Invalid key length
>> you probably need to allow key lenght with 1024, the default is >= 2024

things you can do:
- update-crypto-policies --set DEFAULT:SHA1

create a file: /etc/ssh/ssh_config.d/my.conf

computer2know :: thank you for your visit :: have a nice day :: © 2024