How do I implement Keyboard Interactive authentication?
I see there is a option for it now.
Thanks,
Snorkel
Keyboard Interactive Authentication?
Hi,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.
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
To solve the problem, try to use the following code:
Code: Select all
if Length(Responses) > 0 then
Responses[0]:='mypassword';
Thanks,Dimon wrote:To solve the problem, try to use the following code:Code: Select all
if Length(Responses) > 0 then Responses[0]:='mypassword';
Works now.