thinkst / opencanary

Modular and decentralised honeypot
http://opencanary.org
BSD 3-Clause "New" or "Revised" License
2.21k stars 353 forks source link

Add rsa-sha2-512 and rsa-sha2-256, keys #308

Closed emmanuel-thinkst closed 10 months ago

emmanuel-thinkst commented 10 months ago

Proposed changes

There has been issues the open-canary ssh server, not being able to complete an ssh connection with some clients if they don't offer the "Host Key Algorithms" ssh-rsa and ssh-dss. (https://github.com/thinkst/opencanary/issues/186) After some testing we found out that, usually if the "Host Key Algorithms" above are not offered, a client would then offer these Algorithms, rsa-sha2-512 rsa-sha2-256, instead. These changes add support for the "Host Key Algorithms" rsa-sha2-512 rsa-sha2-256, to the open-canary ssh server.

Types of changes

What types of changes does your code introduce to this repository? Put an x in the boxes that apply

Checklist

Put an x in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before merging your code.