Visual Studio Code: Remote-SSH connect to Windows Server 2019 - visual-studio-code

I've set up my VSCode Insider to connect th a Windows 2019 Server via the Remote-SSH extension. Is it correct, that I need a WSL installed so that it can set up the VSCode-Server and then it is running within the WSL distro when I'm connected?
I thought it would run on Windows instead.

The stable VS Code 1.40 release does not support for Windows ssh hosts: https://code.visualstudio.com/docs/remote/ssh#_remote-ssh-limitations
This feature is still experimental and only enabled in VS Code insiders builds when you set "remote.SSH.remoteIsWindows": true (Make sure to use the nightly ssh extension too) See this issue for details

You do not need to run WSL. You need to install a ssh client on your local machine (the machine that you will run VS Code), and install a ssh server on your remote machine. That's all you need. Your local VS Code uses the ssh client to connect to that ssh server on the remote machine. Details of how to do this can be found here, including opening firewall ports in the case of Windows.

Related

VSCode remote ssh: Can't install extensions on remote server

I am trying to install an extension (as an example cmake tools) on my remote server (ubuntu Arm 64). I have enabled remote.downloadExtensionsLocally feature). When I try to install the extensions, it seems downloaded locally but can't be installed on the target server.
My Host: Windows 10
My Server: Ubuntu 64 ARM running on a rasp4
Here are my user settings (I have enabled a proxy. no diff with/without proxy):
and here are my remote settings:
and this is my windows trace logs after clicking on install button (As can be seen the extension has downloaded successfully):
and my remote server log:
Please check if your Linux kernel/version is compatible with the doc. I guess that the requirements on your server are not met. Please check them:

Its possible to use VSCode SFTP extension with WSL/Ubuntu?

I need to use Windows in the company to development. I enabled WSL2 and installed Ubuntu 20.04. The developer environment is hosted in an AWS EC2 instance. To made changes to the developer environment I use Natizyskunk's SFTP extension for VSCode.
However, the extension is not working when VSCode is launched from a WSL environment. It fails to sync, with no error message. I think this is because WSL2 is behaving like a remote task in VSCode. Can someone help me? I hate using Windows for development, and I would like to use WSL2 with SFTP extension instead.

Install extensions for remote - ssh when remote machine is behind a proxy

I've installed the Remote - SSH extension to develop while working from home, code that is sitting on a remote work computer. Previously I'd been using VSCode installed on the remote Linux machine and just used NX or some remote desktop software to connect and develop. I note that just to point out that a local version of VSCode is also installed on the machine. Now while home, I first connect my laptop to VPN and then using the Remote - SSH extension I am able to develop code sitting on the remote machine. For this SSH connection, I've installed a few extensions on the remote machine that seem to work fine, but I am having trouble installing or getting others to work. Namely the rust-analyzer extension won't install and the rust extension doesn't work. I assume it is because of the "Known limitations" listed on this page https://code.visualstudio.com/docs/remote/ssh#_managing-extensions where it advices to extensions may not work unless the appropriate environment variables are set. Previously I'd been setting http_proxy and https_proxy but now I also set HTTP_PROXY and HTTPS_PROXY because of this advice. However, setting these variables does not solve the problem. I also set these variables in .wgetrc following advice I found somewhere. If this is a proxy issue, how do I set the correct variable? Also, is there an alternative way to install extensions so that they work via the Remote - SSH extension?
Settings -> "Remote" tab -> search "proxy"
set "Http: Proxy", and then reconnect remote

How to connect from a Mac's VSCode to a Windows Server 2012 VM via SSH?

I'm trying to use the Remote SSH VSCode extension to connect to a Windows 2012 Server from my mac.
However, everytime, it fails
What I can do
The extension works for my Linux VMs.
I can ssh via the terminal to the Windows 2012 server with ssh Administrator#vmipaddress
What I've tried
I've installed an OpenSSH server by following this tutorial to no avail.
(https://www.kjctech.net/setting-up-sftp-or-ssh-server-on-windows-server-2012-r2/z)
I installed the Insiders edition and the nightly ssh extension to follow this answer Visual Studio Code: Remote-SSH connect to Windows Server 2019
I'm running Catalina on my Mac.

How do I get the extensions that are installed remotely on Visual Studio code

I was trying to get all the extensions installed on the machine. Now in windows with wsl2 enabled you can install the extensions either in the local (windows 10) or remote (ubuntu wsl2).
When I run code --list-extensions in powershell it only shows the extensions installed in the local only. And when I run code --list-extensions in the ubuntu-wsl2 it shows that the options is not supported.
My question is how can I get the extensions installed in the remote environment?