SshNet changes when upgrading to Kinetic 2022.1 or later

I’m preparing for an upgrade from 2021.1.x to 2023.2.x. I use Renci.SshNet in some BPMs to do sftp transfers. The targeted .NET version changes between 2021.1.x and 2023.2.x, requiring a .NET 6 compatible Renci.SshNet dll.

After some trial and error, I’ve got the new dll working in my sandbox environment. Maybe my experience will help someone else out.

Get the 2023.0.0 netstandard2.0 version of Renci.SshNet.dll from NuGet. https://nuget.info/packages/SSH.NET/2023.0.0

You’ll also need the 1.3.0 netstandard2.0 version of SshNet.Security.Cryptography.dll from NuGet. https://nuget.info/packages/SshNet.Security.Cryptography/1.3.0

Once you have the files -

Replace Renci.SshNet.dll in the …Externals folder.
Add SshNet.Security.Cryptography.dll to the …Externals folder.
Use gacutil.exe to add SshNet.Security.Cryptography.dll to the global assembly cache
Remove Renci.SshNet from the BPM References Externals
Re-add Renci.SshNet to the BPM References Externals
Add SshNet.Security.Cryptography.dll to the BPM References Externals
Add SshNet.Security.Cryptography to the BPM Usings