Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SSH tunnel shows dialog with Plink output before connecting #577

Closed
snuggeman opened this Issue Mar 17, 2019 · 9 comments

Comments

Projects
None yet
4 participants
@snuggeman
Copy link

commented Mar 17, 2019

Steps to reproduce this issue

  1. Step 1; use SSH tunnel with Putty 0.71
  2. Step 2; connect
  3. Dialog box appears: 'Plink: using username "root"'
    4: When dialog is dismissed, connection succeeds and works as usual

Environment

HeidiSQL 10.1.0.5464
Putty 0.71 (64bit)
Windows 10

@ansgarbecker

This comment has been minimized.

Copy link
Collaborator

commented Mar 17, 2019

Can you please attach a screenshot here.

@snuggeman

This comment has been minimized.

Copy link
Author

commented Mar 17, 2019

Skärmklipp

@ansgarbecker

This comment has been minimized.

Copy link
Collaborator

commented Mar 17, 2019

Ok, thanks.

If you connect via SSH yourself, let's say by PuTTY, does that "Using username root" wait for input? That would explain why HeidiSQL displays it as a dialog. But it could easily be a bug in HeidiSQL. Probably the server flushes that text, waits a few milliseconds, then sends the next output, which my implemenation expects to be a prompt, worth to be displayed in a dialog.

@snuggeman

This comment has been minimized.

Copy link
Author

commented Mar 17, 2019

When connecting with Putty, no such dialog is shown.

I forgot to mention, I'm using Pageant for authentication.
Putty, Pageant, Plink are all from Putty 0.71 (just released)

@ansgarbecker

This comment has been minimized.

Copy link
Collaborator

commented Mar 18, 2019

Ok, but I suppose there's a short waiting time after that "Using username..." output, before the next text from comes in?

@snuggeman

This comment has been minimized.

Copy link
Author

commented Mar 19, 2019

I never use Plink manually so I would not know if this has changed. But:
when using cmd.exe (and not cygwin, which I normally use) shell, I get a prompt when manually starting Plink:

Plink.exe root@host
Using username "root".
Access granted. Press Return to begin session.

@vbojan

This comment has been minimized.

Copy link

commented Mar 20, 2019

This appears to be specific to Plink 0.71 as the same version of HeidiSQL (10.1.0.5489) did not show that dialog with Plink 0.70. I'm using private key for authentication without Pageant. Just upgraded to 10.1.0.5505 and it behaves the same. I'm also using x64 versions.

When the above error is shown I have to click on OK button to close the dialog after which it connects to the server just fine (as before).
It feels as if some logic in HeidiSQL needs to be adjusted to the new version of Plink and not show the error dialog. Or if there was indeed an error then show actual error details.

@swiffer

This comment has been minimized.

Copy link

commented Mar 23, 2019

same here since updating to Plink 0.71 (pubkey auth)

@ansgarbecker

This comment has been minimized.

Copy link
Collaborator

commented Mar 28, 2019

The next build should just show that new informational output from plink in the log panel, without an error dialog.

Interesting though that plink sends this "Using username xyz" to the error pipe, not to the normal output pipe.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.