Coder Social home page Coder Social logo

Login with KeyboardInteractive about grunt-scp HOT 7 CLOSED

spmjs avatar spmjs commented on August 29, 2024
Login with KeyboardInteractive

from grunt-scp.

Comments (7)

lepture avatar lepture commented on August 29, 2024

@sattes-faction grunt-scp use https://github.com/lepture/node-scp2 as the backend, and node-scp2 use https://github.com/mscdex/ssh2 as the backend.

If you pass tryKeyboard: true, it will finally pass to ssh2.

I did test tryKeyboard option in node-scp2, but failed, that why node-scp2 created a prompt itself.

Information on tryKeyboard: mscdex/ssh2#24

from grunt-scp.

lepture avatar lepture commented on August 29, 2024

@sattes-faction I found the solution.

from grunt-scp.

lizzie avatar lizzie commented on August 29, 2024

close!

from grunt-scp.

jfgodoy avatar jfgodoy commented on August 29, 2024

sorry for write in this closed issue, but what is the solution? I have the same issue.

from grunt-scp.

batista avatar batista commented on August 29, 2024

@jfgodoy if you pass the attributes: "tryKeyboard": true AND "password": true, it will ask you for the password input.

however, it will not currently count as interactive mode for the ssh server but instead as regular password authentication.

EDIT:
unless I misread the whole thing and @lepture did in deed find a solution for the:

I did test tryKeyboard option in node-scp2, but failed, that why node-scp2 created a prompt itself.

from grunt-scp.

jfgodoy avatar jfgodoy commented on August 29, 2024

thanks @batista, you right using "tryKeyboard": true and "password": true works as regular password authentication.
ssh2 receive the option tryKeyboard and emit the event keyboard-interactive, node-scp2 handle the event and reemit it, but grunt-scp do not handle it, so I create a pull request #16 that handle the event, and respond with the password.

from grunt-scp.

batista avatar batista commented on August 29, 2024

@jfgodoy just tried your pr, works like a charm, thanks 😃

from grunt-scp.

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.