Skip to content

Commit 923296d

Browse files
committed
enhance: pass LogLevel=error to the SSH command line
Refs #2520
1 parent bfe336b commit 923296d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

source/dbconnection.pas

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1119,7 +1119,7 @@ procedure TSecureShellCmd.Connect;
11191119
if FConnection.Parameters.SSHPrivateKey <> '' then
11201120
SshCmd := SshCmd + ' -i "' + FConnection.Parameters.SSHPrivateKey + '"';
11211121
// OpenSSH options must be placed before the destination host.
1122-
SshCmd := SshCmd + ' -o StrictHostKeyChecking=no -o IgnoreUnknown=WarnWeakCrypto -o WarnWeakCrypto=no-pq-kex -o ExitOnForwardFailure=yes -o ServerAliveInterval=60 -o ServerAliveCountMax=3';
1122+
SshCmd := SshCmd + ' -o StrictHostKeyChecking=no -o IgnoreUnknown=WarnWeakCrypto -o WarnWeakCrypto=no-pq-kex -o ExitOnForwardFailure=yes -o ServerAliveInterval=60 -o ServerAliveCountMax=3 -o LogLevel=error';
11231123
SshCmd := SshCmd + ' -N -L ' + IntToStr(FConnection.Parameters.SSHLocalPort) + ':' + FConnection.Parameters.Hostname + ':' + IntToStr(FConnection.Parameters.Port) + ' ' + TargetHost;
11241124
end;
11251125

0 commit comments

Comments
 (0)