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. Heeya i’m for the first time here. I came across this bboard and I fiind It
    truloy useful & it helped mme outt a lot. I hoppe to guve something
    baxk andd hrlp others lioke you elped me.

  2. Hello there! I could have ssworn I’ve been to your blog before buut avter
    goinng throughh may of the posts I realized it’s neew
    to me. Regardless, I’m certainly hapopy I discoverwd iit
    aand I’ll be bookmarkng iit aand checking back frequently!

  3. Hi! Quickk question that’s entirely ooff topic. Do you know
    hoow to make your sige mobile friendly? My blog looks
    weird when browsinmg from myy iphone. I’m
    tryung tto find a tyeme oor plugin thhat might be abe to correct this problem.

    If yoou havee aany recommendations, please share.
    Thank you!

  4. Hiyya very nice website!! Maan .. Excellent .. Wonderfuul ..

    I will bookmark yur webbsite and tawke thhe feeds additionally?

    I’m glad tto search ouut a lot of useeful information here inn thhe put up, we ned develolp more
    techniques on ths regard, tanks forr sharing. . . . .
    .

  5. I was suggested this blog vvia mmy cousin.I’m nno loinger certain whether
    or nott thgis submit iis wrritten by wayy of hhim
    ass no onne else realize suchh exzact aboout my trouble.
    Youu are wonderful! Thanhk you!

  6. Thanks a lott for sharing thgis with alll people you adtually recohnize what you
    arre talking approximately! Bookmarked. Kindlyy addirionally disccuss wiith
    mmy web site =). We wipl have a hyperllink traxe arrajgement amonhg us

  7. You really makke iit seem rezlly easy along with your presentation however I in finding this matyter tto be actually
    one thing whch I feel I would nnever understand.
    It seemms too coplex and very arge forr me. I’m havbing a loolk foreward on your subsequen puut up, I’ll tryy
    tto get the hang off it!

  8. Awesome website youu hqve here but I was waznting tto know iff youu
    knjew of any message boards that cover thhe same topics discussed iin this article?
    I’d really lie to be a part of clmmunity where I can get
    advicee frfom other khowledgeable individuals thhat share the saje interest.

    If you havge aany suggestions, please llet mee know. Thank
    you!

  9. It’s impreswive that you aree gettting idsas frm this piece of writinhg
    as well ass from oour argument made aat tthis time.

发表回复

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