0 votes
by (140 points)

I would like to be able to log the specific algorithms being used by a connection to the file server component - in the case where I need to remove an algorithm from the server configuration it would be great to have this information to hand so I can see which users would be affected.

I can't currently see a way of accessing this from the ServerSession object or similar - is there a way to find this information, ideally from within the FileServer.Authentication event handler?

Applies to: File Server

1 Answer

0 votes
by (147k points)

The ServerSession object featues the Cipher property (SshCipher class), whose properties can be used to retrieve SSH algorithms of all the different categories:

fileServer.Authentication += (sender, e) =>
{
    SshCipher cipher = e.Session.Cipher;
    ...
}

The Cipher property was introduced in Rebex File Server 5.0.7450 (2020 R2).

...