vscode-sftp: Not run on newly VS Code 1.53.0

Do you read the FAQ?

Describe the bug I was update VS Code, and not run anymore this great extension. I need it a lot.

To Reproduce Steps to reproduce the behavior:

  1. Go to sftp configured sites clicking at icon, then sites, and then get the error

Expected behavior Connect

Screenshots If applicable, add screenshots to help explain your problem.

image

image

image

Desktop (please complete the following information): Version: 1.53.0 (user setup) Commit: 8490d3dde47c57ba65ec40dd192d014fd2113496 Date: 2021-02-03T20:36:38.611Z Electron: 11.2.1 Chrome: 87.0.4280.141 Node.js: 12.18.3 V8: 8.7.220.31-electron.0 OS: Windows_NT x64 6.1.7601

Extension Logs from Startup - required

  1. Open User Settings.

    • On Windows/Linux - File > Preferences > Settings
    • On macOS - Code > Preferences > Settings
  2. Set sftp.debug to true and reload vscode.

  3. Reproduce the problem, get the logs from View > Output > sftp.

Nothing from SFTP. Only alert:

command: “sftp.remoteExplorer.refresh” not found

SFTP version: 1.12.9

About this issue

  • Original URL
  • State: open
  • Created 3 years ago
  • Reactions: 8
  • Comments: 29

Most upvoted comments

For other users facing this issue - as the main problem is related to the Electron and createDiffieHellman then you can disable/remove "diffie-hellman-group-exchange-sha256" algorithm as specified in Wiki - SFTP only Config.

In other words, you need to edit sftp.json file and specify following algorithms as supported for each SFTP profile:

"algorithms": {
    "kex": [
        "ecdh-sha2-nistp256",
        "ecdh-sha2-nistp384",
        "ecdh-sha2-nistp521",
        "diffie-hellman-group14-sha1"
    ],
    "cipher": [
        "aes128-ctr",
        "aes192-ctr",
        "aes256-ctr",
        "aes128-gcm",
        "aes128-gcm@openssh.com",
        "aes256-gcm",
        "aes256-gcm@openssh.com"
    ],
    "serverHostKey": [
        "ssh-rsa",
        "ecdsa-sha2-nistp256",
        "ecdsa-sha2-nistp384",
        "ecdsa-sha2-nistp521"
    ],
    "hmac": [
        "hmac-sha2-256",
        "hmac-sha2-512",
        "hmac-sha1"
    ]
}

^ As you can see "diffie-hellman-group-exchange-sha256" is not specified. After doing this everything works fine with 1.53.x versions. Not really the best solution but still.

@NormandoHall This works for me:

2021-02-16_21-18

I use profiles object/key to list all available profiles for specific project, as specified at - https://github.com/liximomo/vscode-sftp#profiles.

same here!

Extension terminates when connecting to Centos 6 host Debian 10 host works allright

MacOs - Big Sur VsCode - 1.53.0 liximomo.sftp - 1.12.9

Same issue on Windows 10 Pro 20H2 after vscode update to version 1.53.0. After install of vascode previous version the extension work. Disabled the vascode auto-update from setting. Thanks

Meanwhile fix this issue, downgrade to 1.52.1 can work again

https://code.visualstudio.com/updates/v1_52