VSCode v1.43 remote ssh cannot connect. v1.42 works

This is an open issue in VSCode Remote-SSH version 0.50.0. See Issue #2527.

The way I resolved it was to downgrade to version 0.49.0.

  1. In VSCode, Ctrl+Shift+X to open extensions
  2. Click the Manage icon next to the Remote - SSH extension
  3. Click Install Another Version... from the options
  4. Select the version to install (0.49.0)

I also recommend disabling the Extensions Auto Update in settings so this type of thing doesn't happen in the future with this or any other extensions.