question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[sftp] All configured authentication methods failed

See original GitHub issue

Expected Behavior

Trying to upload file to server via sftp

Actual Behavior

Getting error saying all configured authentication methods failed

Steps to Reproduce the Problem

This is my sftp.json file:

{
    "host": "example@example.com",
    "port": 22,
    "username": "example_username",
    "password": "example_password",
    "protocol": "sftp",
    "agent": null,
    "privateKeyPath": null,
    "passphrase": null,
    "passive": false,
    "interactiveAuth": true,
    "remotePath": "/example",
    "uploadOnSave": false,
    "syncMode": "update",
    "watcher": {
        "files": false,
        "autoUpload": false,
        "autoDelete": false
    },
    "ignore": [
        "**/.vscode/**",
        "**/.git/**",
        "**/.DS_Store"
    ]
}

Specifications

  • Version: 0.8.3
  • Platform: Mac OS X El Capitan 10.11.6

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:25 (3 by maintainers)

github_iconTop GitHub Comments

58reactions
windware-onocommented, May 9, 2022

In my case, server’s /var/log/auth.log said,

key type ssh-rsa not in PubkeyAcceptedAlgorithms

which lead to a solution by adding,

PubkeyAcceptedKeyTypes=+ssh-rsa

in /etc/ssh/sshd_config and restart sshd.

Seems newer Ubuntu 22.04 has changed default accepted key types and this plugin no longer worked despite ssh command working fine.

30reactions
liximomocommented, Sep 28, 2017

I think the error messages it’s clear.

Read more comments on GitHub >

github_iconTop Results From Across the Web

[Hosting] Error when connecting via SFTP extension in ...
My site is hosted with WPMU DEV. The plugin is giving me an error when I'm trying to connect: “All configured authentication methods...
Read more >
SSH Node ERROR: All configured authentication methods failed
I'm trying to access the same host machine where n8n is running on docker. This is what I'm getting on ssh auth log....
Read more >
TypeScript SFTP Error: All configured authentication methods ...
ts-node index.ts entering into getSftpConnection Error: connect: getConnection: All configured authentication methods failed at SftpClient.
Read more >
How to bypass or resolve Error: All configured authentication ...
The problem is you are trying to connect to a server with an old key. For instance on the Ubuntu 22.04 rsa public...
Read more >
SSH2 fails authentication with a working key converted with ...
... e.g. through the 'ssh2-sftp-client' module), it fails with an error: getConnection: All configured authentication methods failed.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found