Visual Studio Code:远程 SSH 连接到 Windows Server 2019

编程入门 行业动态 更新时间:2024-10-25 14:30:02
本文介绍了Visual Studio Code:远程 SSH 连接到 Windows Server 2019的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

限时送ChatGPT账号..

我已经设置了我的 VSCode Insider 以通过远程 SSH 扩展连接到 Windows 2019 服务器.是否正确,我需要安装 WSL 以便它可以设置 VSCode-Server,然后当我连接时它在 WSL 发行版中运行?

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?

我认为它会在 Windows 上运行.

I thought it would run on Windows instead.

推荐答案

您不需要运行 WSL.你需要在你的本地机器(你将运行 VS Code 的机器)上安装一个 ssh 客户端,并在你的远程机器上安装一个 ssh 服务器.这就是你所需要的.您的本地 VS Code 使用 ssh 客户端连接到远程计算机上的 ssh 服务器.如何执行此操作的详细信息可以在此处找到,包括在 Windows 的情况下打开防火墙端口.

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.

这篇关于Visual Studio Code:远程 SSH 连接到 Windows Server 2019的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

更多推荐

[db:关键词]

本文发布于:2023-04-27 04:49:22,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1148594.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:连接到   Code   Visual   Studio   SSH

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!