Issue #521: use -batch instead of -ssh parameter for plink, to prevent creating a shell and to reduce interactive prompts

This commit is contained in:
Ansgar Becker
2019-04-13 08:38:35 +02:00
parent e40210b1b5
commit f5734fece1

View File

@@ -870,7 +870,7 @@ begin
// Build plink.exe command line
// plink bob@domain.com -pw myPassw0rd1 -P 22 -i "keyfile.pem" -L 55555:localhost:3306
PlinkCmd := FConnection.Parameters.SSHPlinkExe + ' -ssh ';
PlinkCmd := FConnection.Parameters.SSHPlinkExe + ' -batch ';
if FConnection.Parameters.SSHUser <> '' then
PlinkCmd := PlinkCmd + FConnection.Parameters.SSHUser + '@';
if FConnection.Parameters.SSHHost <> '' then