Host key not verified error
Posted: Mon 26 Mar 2018 02:21
Hi, currently i'm using trial version of secure bridge. I tried these codes below to connect to sftp server.
And I got this error Project1.exe raised exception class EScError with message 'Host key not verified'
But when I tried using winscp or filezilla, I'm able to connect.
Not sure what is wrong with my source code below
ScSSHClient.HostName := 'hello.com';
ScSSHClient.Port := 22;
ScSSHClient.User := 'blablabla';
ScSSHClient.Authentication := atPassword;
ScSSHClient.Password := 'blablabla';
ScSSHClient.Connect;
And I got this error Project1.exe raised exception class EScError with message 'Host key not verified'
But when I tried using winscp or filezilla, I'm able to connect.
Not sure what is wrong with my source code below
ScSSHClient.HostName := 'hello.com';
ScSSHClient.Port := 22;
ScSSHClient.User := 'blablabla';
ScSSHClient.Authentication := atPassword;
ScSSHClient.Password := 'blablabla';
ScSSHClient.Connect;