mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2026-03-13 09:24:25 +08:00
Issue #2243: suppress prompt to save a yet unknown host key in ssh mode, by disabling StrictHostKeyChecking
This commit is contained in:
@@ -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+")[^"]*(")';
|
||||
|
||||
Reference in New Issue
Block a user