mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2026-03-13 09:24:25 +08:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user