Search code examples
visual-studio-codesshremote-accessopensshvscode-remote

VS code Remote Development problem with SSH connection (Windows to Linux)


I'm Currently trying to setup Remote developement environment with VS code.

I have installed Remote - SSH plugin and edited my .ssh/config file as below

Host ABC

User ubuntu

HostName xx.xx.xx.xx

IdentityFile ~/.ssh/filename
  • It trowing an error by saying "An SSH Installation couldn't be found"

Local Machine - Windows Host Machine - Ubuntu(Linux)

Please help on this matter


Solution

  • You are missing an SSH tool in your host machine. Popular implementation of SSH protocol, OpenSSH is installed by default in Windows 10. First confirm if you have OpenSSH client by going to

    Windows Settings >> Apps & features >> Optional Features
    

    If not, install OpenSSH client through "Add a feature" option at the optional features page.

    Mostly VSCode can pick the executable from common installation locations of the ssh.exe. If still not able to resolve, add the property below in VSCode settings

    "remote.SSH.path": "your/ssh.exe/path"
    

    like

    "remote.SSH.path": "C:\Windows\System32\OpenSSH"