remote-sync icon indicating copy to clipboard operation
remote-sync copied to clipboard

Error: Handshake failed: no matching key exchange algorithm

Open Filco306 opened this issue 5 years ago • 1 comments

Hello,

I am trying to set this up now, but it does not seem to work. I get:

[10:09:25] Connecting: USER@IPADDRESS
Error: Handshake failed: no matching key exchange algorithm

My .remote-sync.json looks like this:

{
  "transport": "scp",
  "hostname": "IPADDRESS",
  "port": 1234,
  "username": "filco306",
  "keyfile": "/Users/filipcornell/.ssh/id_rsa",
  "passphrase": "PASSPHRASE",
  "target": "/home/USER/test_sftp",
  "ignore": [
    ".remote-sync.json",
    ".git/**"
  ],
  "watch":[
    "/index.py"
  ]
}

My key-file looks like this:

-----BEGIN RSA PRIVATE KEY-----
Proc-Type: 4,ENCRYPTED
DEK-Info: AES-128-CBC,D13774788771CE750B5C011304F638A7

....
-----END RSA PRIVATE KEY----

Would anyone know what the issue is? I am using a Macbook Pro, OS Catalina.

EDIT: I can add that my key works fine for logging in using the console.

Filco306 avatar Oct 06 '20 08:10 Filco306

I can furthermore add that this seems to be a problem with the dependency ssh2-streams.

Filco306 avatar Oct 06 '20 10:10 Filco306