microsoft / dev-tunnels-ssh

SSH library for dev-tunnels
MIT License
131 stars 17 forks source link

Activate connection service with kex disabled #39

Closed jasongin closed 1 year ago

jasongin commented 1 year ago

The previous change to activate the connection service for 'none' key-exchange was incomplete because the connection service was still never activated if the session configuration completely disabled algorithm negotiation.

This change enables using SshSession with algorithm negotiation disabled (SshSessionConfiguration.NoSecurity) without using the MultiChannelStream class. And now there is no special code needed to activate that service in MultiChannelStream.