I have made a custom ssh-server based on this library and the example here ; https://github.com/microsoft/dev-tunnels-ssh/tree/main/src/cs/Ssh#server-example
It works just fine when connecting with openssh ;

Putty and TeraTerm however does not like the hostkey it seems;

Tera Term ;
