diff --git a/source/dbconnection.pas b/source/dbconnection.pas index 351f8777..88019534 100644 --- a/source/dbconnection.pas +++ b/source/dbconnection.pas @@ -1106,6 +1106,8 @@ begin SshCmd := SshCmd + IfThen(IsPlink, ' -P ', ' -p ') + IntToStr(FConnection.Parameters.SSHPort); if FConnection.Parameters.SSHPrivateKey <> '' then SshCmd := SshCmd + ' -i "' + FConnection.Parameters.SSHPrivateKey + '"'; + if not IsPlink then + SshCmd := SshCmd + ' -o StrictHostKeyChecking=no'; SshCmd := SshCmd + ' -N -L ' + IntToStr(FConnection.Parameters.SSHLocalPort) + ':' + FConnection.Parameters.Hostname + ':' + IntToStr(FConnection.Parameters.Port); rx := TRegExpr.Create; rx.Expression := '(-pw\s+")[^"]*(")';