yongkangchen / remote-sync

Upload your files to remote host after every change. Both SCP/SFTP and FTP are supported.
https://atom.io/packages/remote-sync
MIT License
237 stars 71 forks source link

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

Open Filco306 opened 3 years ago

Filco306 commented 3 years ago

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 commented 3 years ago

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