mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2025-08-06 18:24:26 +08:00
Last tweaks for SSH tunnel, issue #401:
* Only pass SSH port if not empty * Put right default file extension for selecting a PuTTY private key file (*.ppk) * Add text hints on more input fields * Indicate modified session also if SSH host, port or key file was changed.
This commit is contained in:
@ -350,7 +350,8 @@ begin
|
||||
PlinkCmd := PlinkCmd + FParameters.Hostname;
|
||||
if FParameters.SSHPassword <> '' then
|
||||
PlinkCmd := PlinkCmd + ' -pw ' + FParameters.SSHPassword;
|
||||
PlinkCmd := PlinkCmd + ' -P ' + IntToStr(FParameters.SSHPort);
|
||||
if FParameters.SSHPort > 0 then
|
||||
PlinkCmd := PlinkCmd + ' -P ' + IntToStr(FParameters.SSHPort);
|
||||
if FParameters.SSHPrivateKey <> '' then
|
||||
PlinkCmd := PlinkCmd + ' -i "' + FParameters.SSHPrivateKey + '"';
|
||||
PlinkCmd := PlinkCmd + ' -L ' + IntToStr(FParameters.SSHLocalPort) + ':' + FParameters.Hostname + ':' + IntToStr(FParameters.Port);
|
||||
|
Reference in New Issue
Block a user