vscode-sshfs
vscode-sshfs copied to clipboard
All configured authentication methods failed in 1.26.1 but not in 1.26.0
The current issue being presented is only happening in version 1.26.1 for a collegue of mine, I am also using the same version and connecting to the same server with the same SSH encryption, ed25519, and currently experiencing no issues.
I've set the debug flag to "DEBUG_SSH2" in SSH FS and grabbed this log from when they tried to connect to the server.
` [INFO] Version history: 1.26.0:1681892628828:1681892628828 > 1.26.1:1681892628828:1681917376342
[INFO] [createConnection(
[INFO] Calculating actual config
[DEBUG] Read private key from /Users/
[DEBUG] Final configuration:
{
"name": "
"privateKeyPath": "/Users/
"passphrase": "
"host": "85.92.73.67",
"username": "
"password": "
"_location": 1,
"_locations": [
1
],
"_calculated": {
"name": "
"privateKeyPath": "/Users/
"passphrase": "
"host": "
"username": "
"password": "
"_location": 1,
"_locations": [
1
]
},
"port": 22,
"privateKey": "Buffer(484)"
}
[INFO] [createSocket(
[DEBUG] [createSocket(
[INFO] [createSSH(
[INFO] [createSSH(
[DEBUG] [ssh2(
[DEBUG] [ssh2(
[DEBUG] [ssh2(
[DEBUG] [ssh2(
[DEBUG] [ssh2(
[DEBUG] [ssh2(
[DEBUG] [ssh2(
[DEBUG] [ssh2(
[DEBUG] [ssh2(
[DEBUG] [ssh2(
[DEBUG] [ssh2(
[DEBUG] [ssh2(
[DEBUG] [ssh2(
[DEBUG] [ssh2(
[DEBUG] [ssh2(
[DEBUG] [ssh2(
[DEBUG] [ssh2(
[DEBUG] [ssh2(
[DEBUG] [ssh2(
[DEBUG] [ssh2(
[DEBUG] [ssh2(
[DEBUG] [ssh2(
[DEBUG] [ssh2(
[DEBUG] [ssh2(
[DEBUG] [ssh2(
[DEBUG] [ssh2(
[DEBUG] [ssh2(
[DEBUG] [ssh2(
[DEBUG] [ssh2(
[DEBUG] [ssh2(
[DEBUG] [ssh2(
[DEBUG] [ssh2(
[DEBUG] [ssh2(
[DEBUG] [ssh2(
[DEBUG] [ssh2(
[DEBUG] [ssh2(
[DEBUG] [ssh2(
[DEBUG] [ssh2(
[DEBUG] [ssh2(
[DEBUG] [ssh2(
[DEBUG] [ssh2(
[DEBUG] [ssh2(
[DEBUG] [ssh2(
[DEBUG] [ssh2(
[DEBUG] [ssh2(
[DEBUG] [ssh2(
[DEBUG] [ssh2(
[DEBUG] [ssh2(
[DEBUG] [ssh2(
[DEBUG] [ssh2(
[DEBUG] [ssh2(
[ERROR] [createSSH(
JSON: {"level":"client-authentication"}
Error: All configured authentication methods failed
at _e (/Users/
at Ie (/Users/
at USERAUTH_FAILURE (/Users/
at 51 (/Users/
at e.exports.D (/Users/
at D.decrypt (/Users/
at e.exports.H [as _parse] (/Users/
at e.exports.parse (/Users/
at Socket.
at Socket.emit (node:events:526:28)
Logged at:
at e.exports.emit (node:events:526:28)
at _e (/Users/
at Ie (/Users/
at USERAUTH_FAILURE (/Users/
at 51 (/Users/
Reported by logger createSSH(
[DEBUG] [ssh2(
[ERROR] Error while connecting to SSH FS
Error: All configured authentication methods failed
JSON: {"level":"client-authentication"}
Error: All configured authentication methods failed
at _e (/Users/
at Ie (/Users/
at USERAUTH_FAILURE (/Users/
at 51 (/Users/
at e.exports.D (/Users/
at D.decrypt (/Users/
at e.exports.H [as _parse] (/Users/
at e.exports.parse (/Users/
at Socket.
at Socket.emit (node:events:526:28)
Caused by catchingPromise:
at i (/Users/
at E.createFileSystem (/Users/
at process.processTicksAndRejections (node:internal/process/task_queues:96:5)
Logged at:
at /Users/
at process.processTicksAndRejections (node:internal/process/task_queues:96:5)
[DEBUG] [ssh2(
[DEBUG] [ssh2(
Immediately after having this fail, we decided to test the previous version which is 1.26.0 and this worked without fail.
I'm experiencing the same issue. I rolled back to 1.26.0 and it works again.
Same here. Rolled back to 1.26.0 and it works
Same here
Same here. 1.26.0 rollback and all is fine.
I can confirm same issue here also. 1.26.0 rollback fixed it
Same issue and same rollback to fix the issue
Same
Same
Had the same issue with 1.26.1 when using ed25519. It works fine with rsa.
I eventually added "-OPENSSH-SHA1" to sshfs.flags and it worked.
Edit: it also seems to be happening when you have the private key password set. I'm not sure if it is just any encrypted private key or encrypted ed25519 private key.
I can confirm that adding this value to the settings.json file worked.
"sshfs.flags": [
"-OPENSSH-SHA1"
]
I can confirm that adding this value to the settings.json file worked.
"sshfs.flags": [ "-OPENSSH-SHA1" ]
Thanks @Wasca this fixed it for me.