

Click on the indicator to bring up a list of Remote extension commands. This indicator tells you in which context VS Code is running (local or remote). If VS Code cannot automatically detect the type of server you are connecting to, you will be asked to select the type manually. In VS Code, select Remote-SSH: Connect to Host from the Command Palette ( F1) and use the same as in step 1. In the new window, enter on "Linux" then enter the ssh password. Closed /home///.vscode-remote/bin/ A new VSCode window is opened. SSH: Error "Could not establish connection to host" when trying to, SSH: Error "Could not establish connection to host" when trying to connect #80. The default configuration does not include a. Error window with Could not establish connection to. vs code server remote server begins installing as evidenced by notification in lower right hand corner. Enter the full ssh command, including the key (in case of Windows, you may want to enclose the path with double quote mark) ssh -i "C:\path\to\key" (you need to make sure the key has a limited permission.Ī new vs code window opens, also opening a terminal window and asking for identity file password. In VS Code, press F1, choose Remote-SSH: Connect to Host Do NOT enter anything in the prompt, but instead choose + Add New SSH Host. vscode-remote ssh could not establish connection Install an OpenSSH compatible SSH client. Install VS Code or VS Code - Insiders and this extension. While ARMv7l (AArch32) and ARMv8l (AArch64) support is available, some extensions installed on these devices may not work due to the use of x86 native code in the extension. If you do not have an SSH host set up, follow the directions for Linux, Windows 10 / Server (1803+), or macOS SSH host or create a VM on Azure. Install the Remote Development extension pack.

Install Visual Studio Code or Visual Studio Code Insiders. Install an OpenSSH compatible SSH client if one is not already present.

This does not occur with OpenSSH server that ships with Windows 1909 and below. Due to a bug in certain versions of OpenSSH server for Windows, the default check to determine if the host is running Windows may not work properly. Work around a bug with some versions of Windows OpenSSH server. Then upgrade Remote-SSH plugin, everything works. Connect again, VSCode will download and install a new.vscode-server. I downgrade Remote-SSH plugin to 0.51.0, rm -rf $HOME/.vscode-server on the remote machine. Impossible to work with remote machines Impossible to work with remote machines It's working well in the past few months and now it's so annoying. Vscode-remote ssh keep asking for passwordĪsk questions VS Code Remote SSH keeps asking for password.
