Comments (7)
@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.
@sattes-faction I found the solution.
from grunt-scp.
close!
from grunt-scp.
sorry for write in this closed issue, but what is the solution? I have the same issue.
from grunt-scp.
@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.
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.
@jfgodoy just tried your pr, works like a charm, thanks
from grunt-scp.
Related Issues (20)
- NPM doesn't have latest code HOT 3
- Configure File permissions
- Read private key HOT 9
- Configuring without ``cwd`` causes a path.resolve warning HOT 1
- Fatal error: handle is not a Buffer while doing scp HOT 3
- enable support for grunt-newer HOT 2
- hidden files are not being uploaded
- multiple setting doesn't work
- Bad destination file if expand:true HOT 1
- Password prompt if ssh agent is set
- Must I use the 'cwd'? HOT 2
- My DSA key, without passphrase, isn't working. HOT 1
- Any chance of supporting a newer version of Grunt? HOT 2
- Process Function doesn't trigger HOT 1
- Use OSX ~/.ssh/config
- Can I use this grunt plugin to DOWNLOAD a file from a remote server ? HOT 1
- Update to dependencies that use lodash HOT 1
- Update to scp2 dependency
- Registering multiple tasks HOT 8
- install error HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from grunt-scp.