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

Error: Handshake failed: no matching key exchange algorithm #124

Closed
keen0927 opened this issue Mar 9, 2018 · 6 comments
Closed

Error: Handshake failed: no matching key exchange algorithm #124

keen0927 opened this issue Mar 9, 2018 · 6 comments

Comments

@keen0927
Copy link

keen0927 commented Mar 9, 2018

Requisites (important to diagnose the problem!)

not working sftp extension.

i'ts my sftp config.

`

"privateKeyPath": null, 
"agent": null,
"passphrase": null,
"interactiveAuth": false,
"protocol": "sftp",
"host": "~~~~~~",
"username": "~~~~",
"password": "~~~~~",
"remotePath": "~~~~~",
"uploadOnSave": true,
"syncMode": "update",
"ignore":[
    ".vscode",
    ".git",
    ".DS_Store"
],
"watcher":{
    "files": "**/*",
    "autoUpload": true,
    "autoDelete": true
},
"algorithms": {
    "kex": [
      "diffie-hellman-group1-sha1",
      "ecdh-sha2-nistp256",
      "ecdh-sha2-nistp384",
      "ecdh-sha2-nistp521",
      "diffie-hellman-group-exchange-sha256",
      "diffie-hellman-group14-sha1"
    ],
    "cipher": [
      "3des-cbc",
      "aes128-ctr",
      "aes192-ctr",
      "aes256-ctr",
      "aes128-gcm",
      "[email protected]",
      "aes256-gcm",
      "[email protected]"
    ],
    "serverHostKey": [
      "ssh-rsa",
      "ecdsa-sha2-nistp256",
      "ecdsa-sha2-nistp384",
      "ecdsa-sha2-nistp521"
    ],
    "hmac": [
      "hmac-sha2-256",
      "hmac-sha2-512",
      "hmac-sha1"
    ]
}

`

Extension Logs

`

at check_KEXINIT (/Users/keen/.vscode/extensions/liximomo.sftp-1.0.5/node_modules/ssh2-streams/lib/ssh.js:2279:15)
at check (/Users/keen/.vscode/extensions/liximomo.sftp-1.0.5/node_modules/ssh2-streams/lib/ssh.js:2217:9)
at onKEXINIT (/Users/keen/.vscode/extensions/liximomo.sftp-1.0.5/node_modules/ssh2-streams/lib/ssh.js:2214:5)
at SSH2Stream. (/Users/keen/.vscode/extensions/liximomo.sftp-1.0.5/node_modules/ssh2-streams/lib/ssh.js:206:5)
at emitTwo (events.js:106:13)
at SSH2Stream.emit (events.js:194:7)
at parse_KEXINIT (/Users/keen/.vscode/extensions/liximomo.sftp-1.0.5/node_modules/ssh2-streams/lib/ssh.js:4105:8)
at parsePacket (/Users/keen/.vscode/extensions/liximomo.sftp-1.0.5/node_modules/ssh2-streams/lib/ssh.js:4001:12)
at SSH2Stream._transform (/Users/keen/.vscode/extensions/liximomo.sftp-1.0.5/node_modules/ssh2-streams/lib/ssh.js:667:13)
at SSH2Stream.Transform._read (_stream_transform.js:167:10)
at SSH2Stream._read (/Users/keen/.vscode/extensions/liximomo.sftp-1.0.5/node_modules/ssh2-streams/lib/ssh.js:251:15)
at SSH2Stream.Transform._write (_stream_transform.js:155:12)
at doWrite (_stream_writable.js:329:12)
at writeOrBuffer (_stream_writable.js:315:5)`

Specifications

  • Version: 1.0.5
  • Platform: High Sierra 10.13.1
@liximomo
Copy link
Owner

liximomo commented Mar 9, 2018

What is the valid kex algorithm for your server? If you don't know, you can set all kex algorithms.

{
 "kex": [
      "ecdh-sha2-nistp256",
      "ecdh-sha2-nistp384",
      "ecdh-sha2-nistp521",
      "diffie-hellman-group-exchange-sha256",
      "diffie-hellman-group14-sha1",
      "diffie-hellman-group-exchange-sha1",
      "diffie-hellman-group1-sha1"
 ]
}

@keen0927
Copy link
Author

Thank you answer.
Still not working.
Is there a problem with the setting other than the kex algorithm?

@liximomo
Copy link
Owner

liximomo commented Mar 13, 2018

Try v1.1.0. It should be fixed.

@keen0927
Copy link
Author

so~~~ amazing thank you!!! so much!!

@evannalikeyou
Copy link

I encounter this problem too, and the latest version 1.8.4 is installed.
Please help~ It is driving me mad.o(╥﹏╥)o

@liximomo
Copy link
Owner

liximomo commented Jan 3, 2019

@evannalikeyou Please file a new issue.

Repository owner locked as resolved and limited conversation to collaborators Jan 3, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants