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

sftp fails with message "All configured authentication methods failed" #47

Open
bsanth opened this issue Nov 6, 2015 · 3 comments · May be fixed by #74
Open

sftp fails with message "All configured authentication methods failed" #47

bsanth opened this issue Nov 6, 2015 · 3 comments · May be fixed by #74

Comments

@bsanth
Copy link

bsanth commented Nov 6, 2015

Hi guys,

I am on Mac OS X El Capitan and my gulp-sftp fails with the following message:

[16:35:58] Error in plugin 'gulp-sftp'
Message:
All configured authentication methods failed
Details:
level: client-authentication

I dug a bit and this might be the cause of the error:
mscdex/ssh2#238

@bsanth
Copy link
Author

bsanth commented Nov 6, 2015

Here is a fix. This should go to line 192 instead of just c.connect(connection_options);

        connection_options.tryKeyboard = true;
        c.on('keyboard-interactive',
            function(name, instructions, instructionsLang, prompts, finish) {
            // Pass answers to `prompts` to `finish()`. Typically `prompts.length === 1`
            // with `prompts[0] === "Password: "`
            finish([connection_options.password]);
        }).connect(connection_options);

@dandrewrichardson
Copy link

Can confirm that this fix worked for me, also on El Capitan.

@ruslanxdev
Copy link

It works. But I had yet to update openssl v0.9.8zh -> v1.1.0-pre1.
http://mac-dev-env.patrickbougie.com/openssl

@xsbchen xsbchen linked a pull request Aug 10, 2017 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants