I get "Connection failed" always with ssh.exe in HeidiSQL, but can connect on CLI fine I notice in the ssh command it is passing -pw "password" but that throws an error on command line, and the actual flag is -P Is there a way we can use our own command for ssh tunneling?
SSH command wrong on windows
On Windows ssh.exe, -P tag is not a port or password option; it is for selecting a resident key on supported security hardware under the Windows OpenSSH client.
AFAIK only plink supports an ssh password on the command line. HeidiSQL passes it with -pw to the tool, anyway if it's plink or ssh.
The solution is mostly either to use plink if you cannot work without password. The better one is to use a key instead of a password. This is again supported by plink and ssh.
Now on Linux, there is "sshpass" which HeidiSQL now uses when you provide a password. It's the only way to use a SSH password, and there is no plink on Linux.
Please login to leave a reply, or register at first.