Issue #1529: detect klink.exe and putty.exe as variants of plink executable

This commit is contained in:
Ansgar Becker
2022-02-09 20:08:44 +01:00
parent 0bbca8e6f7
commit d84f2ed22e
2 changed files with 18 additions and 1 deletions

View File

@ -1085,7 +1085,7 @@ begin
// Build SSH command line
// plink bob@domain.com -pw myPassw0rd1 -P 22 -i "keyfile.pem" -L 55555:localhost:3306
IsPlink := FConnection.Parameters.SSHExe.ToLowerInvariant.Contains('plink');
IsPlink := ExecRegExprI('([pk]link|putty)', FConnection.Parameters.SSHExe);
SshCmd := FConnection.Parameters.SSHExe;
if IsPlink then
SshCmd := SshCmd + ' -ssh';