sshnet / SSH.NET

SSH.NET is a Secure Shell (SSH) library for .NET, optimized for parallelism.
http://sshnet.github.io/SSH.NET/
MIT License
3.88k stars 919 forks source link

Update version in client string for new releases #1292

Open pra-olo opened 5 months ago

pra-olo commented 5 months ago

The client string set here is static and hasn't been updated in eight years.

Updating this to reflect the released version would assist SSH service operators in auditing their clients' capabilities before updating supported ciphers and key-exchange algorithms.

Rob-Hague commented 5 months ago

After #1256, it might be possible to achieve this by using the MSBuild WriteLinesToFile task to write out the Version property as a constant in the source. It might already be possible with WriteCodeFragment to get the AssemblyVersion attribute