mkloubert / vscode-deploy-reloaded

Recoded version of Visual Studio Code extension 'vs-deploy', which provides commands to deploy files to one or more destinations.
https://marketplace.visualstudio.com/items?itemName=mkloubert.vscode-deploy-reloaded
GNU Lesser General Public License v3.0
161 stars 38 forks source link

Handshake failed: no matching key exchange algorithm #112

Open tyler36 opened 5 years ago

tyler36 commented 5 years ago

Description

Deploy version 14.0.0 works. Updated to Deploy (reloaded) 0.86.0 and stopped working

Actual behavior

Deploy.reloaded appears to hang on deploy. Deploy.reloaded output displays 🔥 [ERROR] Could not deploy files to 'test.test.local': 'Handshake failed: no matching key exchange algorithm'

Expected behavior

File uploaded

Steps to reproduce

Fails when attempted through context menu (right click) or command pallet

Example config

{
    "deploy.reloaded": {
        "packages": [
            {
                "name": "Test",                
                "button": {
                    "text": "Deploy to 'test.test.local'",
                    "tooltip": "Click here to deploy to the target...",
                    "targets": [ "test.test.local" ]
                }
            },
        ],
        "targets": [
            {
                "type": "sftp",
                "name": "test.test.local",
                "description": "test server",
                "dir": "/home/httpd/test.local/test",
                "host": "test.test.local", "port": 22,
                "user": "user",
                "password": "password"
            }
        ]
    }
}

Logs

No log message

Your environment

Additional comments

{Please write here, if there is something more to tell}

mkloubert commented 5 years ago

@tyler36

Have you tried the hashAlgorithm setting?

By default it is md5. Can you try the sha-1 value?

tyler36 commented 5 years ago

Thanks for suggestion. I added "hashAlgorithm": "sha-1" to my config but got the following error

Invalid host hash algorithm: sha-1

After checking my config, I realized it should have been "hashAlgorithm": "sha1", but this reverts the error back to

'Handshake failed: no matching key exchange algorithm'
tyler36 commented 5 years ago

Turning debug on, shows

INFO extension.deploy.reloaded.loadplugins - [15/Jan/2019:00:08:58 +0000] "Loaded 19 plugins:
- app
- azureblob
- batch
- compiler
- dropbox
- each
- ftp
- list
- local
- mail
- map
- prompt
- s3bucket
- script
- sftp
- slack
- switch
- test
- zip
INFO workspaces.workspace.reloadpackagebuttons() - [15/Jan/2019:00:08:59 +0000] "Registrated command 'extension.deploy.reloaded.buttons.deployPackage-9007199254740991' for button of package 'Test'."

Without knowing whats really important, this all appears fine to me.

tyler36 commented 5 years ago

Any other ideas to try?