Connecting in SSH Tunnel on Ubuntu (20.4)

vi_dev's profile image vi_dev posted 7 months ago in General Permalink

Hello. I'm having some trouble connecting HeidiSql on Ubuntu 20.4.

I can login using Windows in a Virtual Machine with no problem.

But on Linux, I get the following error: Description

"Connection failed. SSH exited unexpected. Command line was: plink.exe -ssh pge_admin@[SERVER-IP] -pw password -P 22 -N -L 3307:[SERVER-IP]:3306".

I already tried changing the "SSH tunnel" options, port, etc., and nothing works, and I get the same error.

Can somebody help me, please? Thank you.

ansgar's profile image ansgar posted 7 months ago Permalink

You could try to fire the plink command line in a separate shell window, so you can better see what's going on.

Also, when running on Wine, you may use "ssh" instead of "plink.exe" instead.

vi_dev's profile image vi_dev posted 7 months ago Permalink

I successfully connected using the command line in terminal. Description

But when I open HeidiSQL, I get the same error as before.

About the "ssh", I get "file not found" when trying to use it. Where can I download the file? (I'm using the version 12.5)

ansgar's profile image ansgar posted 7 months ago Permalink

ssh is a Linux binary.

Did you retry in HeidiSQL with plink? Now that you stored the host key in your cache on the command line, you probably solved the problem.

vi_dev's profile image vi_dev posted 7 months ago Permalink

ssh is a Linux binary.

Did you retry in HeidiSQL with plink? Now that you stored the host key in your cache on the command line, you probably solved the problem.

Yes, I tried with plink and got the same error as the first message on this topic.

When I try to use ssh I get the "file not found" error:

Description

ansgar's profile image ansgar posted 7 months ago Permalink

Please also try "ssh", not "ssh.exe". I'm very unsure if that should work but give it a try.

vi_dev's profile image vi_dev posted 7 months ago Permalink

I get the same error "File not found". I checked the HeidiSQL folder and there's not a file named "ssh" or "ssh.exe", only "plink.exe".

Please login to leave a reply, or register at first.