[sftp] All configured authentication methods failed
See original GitHub issueExpected 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:
- Created 6 years ago
- Comments:25 (3 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
In my case, server’s
/var/log/auth.log
said,which lead to a solution by adding,
in
/etc/ssh/sshd_config
and restartsshd
.Seems newer Ubuntu 22.04 has changed default accepted key types and this plugin no longer worked despite
ssh
command working fine.I think the error messages it’s clear.