Explicitly pass -ssh parameter to plink although that's assumed as default, but there seems to be some magic switch to some other protocol on certain servers. Fixes issue #2278.

This commit is contained in:
Ansgar Becker
2011-01-26 06:57:11 +00:00
parent 4252ea8951
commit 005856d9f0

View File

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