Skip to content

Latest commit

 

History

History
38 lines (30 loc) · 1.6 KB

Remote_VS_Code.md

File metadata and controls

38 lines (30 loc) · 1.6 KB

Configure Remote SSH for VS Code

VS Code used for this tutorial: 1.43.2

  1. Install an OpenSSH compatible SSH client

  2. Install VS Code Extension named "Remote Development".

  3. Hit F1 key and go to "Remote-SSH: Open Configuration File..."

    • On linux, add these lines to the file (replace m20leona by your own username):
    Host              brain1.imt
        User              m20leona
        Compression       yes
        HostName          10.29.232.81
    
    Host *.imt
        ProxyCommand ssh [email protected] "/bin/nc `basename %h .imt` %p"
    
    • On Windows, add these lines to the file (replace m20leona by your own username):
    Host              brain1.imt
        User              m20leona
        Compression       yes
        HostName          10.29.232.81
    
    Host *.imt
        ProxyCommand C:\Windows\System32\OpenSSH\ssh.exe [email protected] "/bin/nc `basename %h .imt` %p"
    
  4. Hit F1 key and go to "Remote-SSH: Connect To Host..."

  5. Select "brain1.imt"

  6. If you get the following error message :

Failed to find a non-Windows SSH installed. Password prompts may not be displayed properly! Disable remote.SSH.useLocalServer if needed.

It's a known bug. Follow instructions here and downgrade Remote - SSH extension to 0.49.0.

  1. Enter passwords when prompted
  2. If asked about fingerprints, hit "Continue"