Exceptions thrown on TScSSHClient::Connect
Posted: Fri 18 Jul 2014 13:37
Hello,
As I understand the unique way to know what went wrong when connecting from the SSH client is to catch exceptions thrown. The information is stored as an English string in the Message property.
What is the list of possible exceptions thrown ? (looks like it is only an Exception based class so not a derived class that would had some customization).
My need would be to have more specific information when authentication fails than just the "Authentication failed" string. Our SSH server validates the user with a third party (a Radius server) and we'd like to give more feedback to the user on why it failed (such as Radius server unreachable, ).
That might be a restriction of the implementation of the SSH protocol, which I would understand, but I would like to be sure.
PS: password authentication is used for connecting.
As I understand the unique way to know what went wrong when connecting from the SSH client is to catch exceptions thrown. The information is stored as an English string in the Message property.
What is the list of possible exceptions thrown ? (looks like it is only an Exception based class so not a derived class that would had some customization).
My need would be to have more specific information when authentication fails than just the "Authentication failed" string. Our SSH server validates the user with a third party (a Radius server) and we'd like to give more feedback to the user on why it failed (such as Radius server unreachable, ).
That might be a restriction of the implementation of the SSH protocol, which I would understand, but I would like to be sure.
PS: password authentication is used for connecting.