Code Monkey home page Code Monkey logo

Comments (8)

Bastika07 avatar Bastika07 commented on June 25, 2024

2024-04-16 15:07:44 [passphrase] / / [15:07:44.714] ssh.exe [email protected] 22 -i "C:\Users\xxx.ssh\id_rsa" -N -L 3307:127.0.0.1:3306 /
/
2024-04-16 15:07:50 [passphrase] / / [15:07:50.852] Can't connect to server on '127.0.0.1' (10061) /
/
2024-04-16 15:07:50 [passphrase] / / [15:07:50.853] Schließe SSH-Prozess #255

from heidisql.

Bastika07 avatar Bastika07 commented on June 25, 2024

If i try the ssh command in my commandline, i will be asked for my passphrase.

from heidisql.

ansgarbecker avatar ansgarbecker commented on June 25, 2024

I was just trying to reproduce on poweshell terminal, and ssh.exe prompts for my passphrase - so far so correct. After I entered the correct passphrase, I get a waiting cursor, and nothing happens for at least 20 seconds:

grafik

What's happening there?

Edit: forget this, I was expecting some output but started a tunnel which does not output anything, so the connection was successful.

from heidisql.

ansgarbecker avatar ansgarbecker commented on June 25, 2024

Problem seems to lie somewhere in my TProcessPipe and TSecureShellCmd implementation. The output saying "Enter passphrase for key ...:" is not visible in the out pipe, for some reason.

from heidisql.

ansgarbecker avatar ansgarbecker commented on June 25, 2024

Related: #1838

from heidisql.

ansgarbecker avatar ansgarbecker commented on June 25, 2024

I just tried with plink.exe and I was asked for the passphrase:

grafik

Note that plink/putty uses a different key format, so I had to convert my OpenSSH key with puttygen.exe to the format which plink accepts. Withouth that, plink is returning a "Unable to use key file" error (invisible in HeidiSQL), and asks for the users password.

from heidisql.

ansgarbecker avatar ansgarbecker commented on June 25, 2024

Next build shows potential errors in the dialog and in the log panel, like the one you get when using plink with a OpenSSH key:

grafik

from heidisql.

ansgarbecker avatar ansgarbecker commented on June 25, 2024

Solution is to use plink witha putty key if you want to use keys with a passphrase. HeidiSQL then prompts you for the passphrase.

Using ssh.exe, it seems impossible to catch the "Enter passphrase" prompt from the internal process.

from heidisql.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.