Page 1 of 1

Keyboard Interactive Authentication?

Posted: Fri 11 Sep 2009 17:10
by snorkel
How do I implement Keyboard Interactive authentication?
I see there is a option for it now.

Thanks,

Snorkel

Posted: Mon 14 Sep 2009 07:26
by Dimon
You should set the TSSHClient.Autentification property to atKeyboardInteractive and process the TScSSHClient.AuthenticationPrompt event.
You can look at the example of using this autentification method in the SSHClient demo of SecureBridge.

Posted: Mon 14 Sep 2009 22:46
by snorkel
Dimon wrote:You should set the TSSHClient.Autentification property to atKeyboardInteractive and process the TScSSHClient.AuthenticationPrompt event.
You can look at the example of using this autentification method in the SSHClient demo of SecureBridge.
Hi,

I setup the event, but I keep getting a Access Violation:

procedure TForm1.ScSSHClient1AuthenticationPrompt(Sender: TObject; const Name, Instruction: string;
const Prompts: array of string; var Responses: array of string);
begin
Responses[0]:='mypassword';
end;

From looking at the demo this all it seems to be doing.

Am I missing something?

Thanks,

Snorkel

Posted: Tue 15 Sep 2009 07:10
by Dimon
To solve the problem, try to use the following code:

Code: Select all

if Length(Responses) > 0 then
  Responses[0]:='mypassword';

Posted: Tue 15 Sep 2009 15:11
by snorkel
Dimon wrote:To solve the problem, try to use the following code:

Code: Select all

if Length(Responses) > 0 then
  Responses[0]:='mypassword';
Thanks,
Works now.