[VSCode Extension] Visual Studio Code SSH Remote Development extension

Visual Studio Code

Visual Studio Code - Code Editing. Redefined - https://code.visualstudio.com/ is a code editor redefined and optimized for building and debugging modern web and cloud applications. Visual Studio Code is free and available on your favorite platform - Linux, macOS, and Windows.

This article covers troubleshooting tips and tricks for each of the Visual Studio Code SSH Remote Development extensions

SSH is powerful and flexible, but this also adds some setup complexity. This section includes some tips and tricks for getting the Remote - SSH extension up and running in different environments.


If you are running into problems with VS Code hanging while trying to connect (and potentially timing out), there are a few things you can do to try to resolve the issue.

getPlatformForHost was canceled

Enable the remote.SSH.remotePlatform setting in VS Code and retry.


A map of the remote hostname to the platform for that remote. Valid values: linux, macOS, windows. Note - this setting will soon be required when useLocalServer is disabled, so it is currently being autopopulated for successful connections, but is not currently used.

Local server exit: 15

If you can ssh in command line, try and remove or rename ~/.vscode-server in order to force a complete re-installation of the SSH remote plugin by VSCode.

Try and connect to that server through VSCode and see if the issue persists, when it tries to redo the complete vscode-server SSH setup.

linux - VS Code SSH Remote Connection issues - Stack Overflow - https://stackoverflow.com/questions/64298741/vs-code-ssh-remote-connection-issues


[1] Developing on Remote Machines using SSH and Visual Studio Code - https://code.visualstudio.com/docs/remote/ssh

[2] Visual Studio Code Remote Development Troubleshooting Tips and Tricks - https://code.visualstudio.com/docs/remote/troubleshooting

[3] Visual Studio Code - Code Editing. Redefined - https://code.visualstudio.com/