From f5734fece1af918cf5b0f48e3d36ce962535ab06 Mon Sep 17 00:00:00 2001 From: Ansgar Becker Date: Sat, 13 Apr 2019 08:38:35 +0200 Subject: [PATCH] Issue #521: use -batch instead of -ssh parameter for plink, to prevent creating a shell and to reduce interactive prompts --- source/dbconnection.pas | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/dbconnection.pas b/source/dbconnection.pas index dd28af7b..44fea19b 100644 --- a/source/dbconnection.pas +++ b/source/dbconnection.pas @@ -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