Skip to content
Permalink
Browse files

Issue #521: use -batch instead of -ssh parameter for plink, to preven…

…t creating a shell and to reduce interactive prompts
  • Loading branch information...
ansgarbecker committed Apr 13, 2019
1 parent e40210b commit f5734fece1af918cf5b0f48e3d36ce962535ab06
Showing with 1 addition and 1 deletion.
  1. +1 −1 source/dbconnection.pas
@@ -870,7 +870,7 @@ procedure TPlink.Connect;

// 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

0 comments on commit f5734fe

Please sign in to comment.
You can’t perform that action at this time.