VS Code连接远程服务器时弹出an ssh installation couldn’t be found对话框的解决方法

我的操作系统是Windows 10。

在VS Code中安装Remote-SSH扩展进行远程开发,首次连接远程服务器时出现an ssh installation couldn’t be found对话框,该错误表明VS Code Remote-SSH扩展在Windows系统中找不到ssh.exe。

VS Code默认将在PATH环境变量中查找ssh命令,如果找不到,就会出现上述错误。

可以先在Windows系统中安装Git软件包,它会同时安装ssh.exe,然后在VS Code Remote-SSH扩展的设置里,将remote.SSH.path配置项的值设置为ssh.exe在Windows系统里的绝对路径,明确告诉VS Code SSH客户端的位置,具体步骤为:

在VS Code中按下F1键 -> 输入Remote-SSH:Settings后回车,打开Remote-SSH的配置文件 -> 找到remote.SSH.path配置项,填入ssh.exe在Windows系统中的绝对路径,例如:C:\Programs\Git\usr\bin\ssh.exe

除了使用Git软件包包含的ssh.exe外,也可以安装OpenSSH软件包,使用它包含的ssh.exe。

“VS Code连接远程服务器时弹出an ssh installation couldn’t be found对话框的解决方法”的23个回复

  1. I am regular visitor, how are you everybody? This piece of writing posted at this web page is actually pleasant. Jared Sturges

  2. Always a significant fan of linking to bloggers that I like but do not get lots of link appreciate from. Chas Spingola

  3. Hello, I wantt tto subscribe foor tthis web site tto otain hottest updates, therefoore where ccan i do itt plewase assist.

  4. Asking questions are inn act noce thing iif yoou arre nott understanding something totally, however this article
    presents good understanding even.

  5. This is really interesting, Youu aree a very skilled blogger.
    I haave joinbed your feed andd look forward to seeking more
    oof yopur great post. Also, I have shzred yourr
    wedbsite in my social networks!

  6. Thanks forr finally talkng about > VS Code连接远程服务器时弹出an ssh imstallation couldn’t
    bee found对话框的解决方法 < Liked it!

  7. Nice post. I wwas checkingg constantly this weblog aand I amm impressed!
    Very helpfl information specially the final par 🙂 I deal with suh iinfo much.
    I was seekming thhis cerfain info for a very llng time.
    Thankks and bext oof luck.

  8. What’s up, aall iis gooing nicely here and ofcourse evvery one
    iss shaing information, that’s really good, keep upp writing.

  9. Hi to evvery one, it’s truly a ood for me tto isit tnis wweb site, iit consists off important Information.

发表回复

您的电子邮箱地址不会被公开。 必填项已用 * 标注