vscode的ssh连接报错:过程试图写入的管道不存在
报错
[15:38:48.548] Running script with connection command: "C:\Windows\System32\OpenSSH\ssh.exe" -T -D 11892 "nvidia@nvidia" bash
[15:38:48.569] Terminal shell path: C:\Windows\System32\cmd.exe
[15:38:53.152] > ssh: Could not resolve hostname nvidia: \262\273\326\252\265\300\325\342\321\371\265\304\326\367\273\372\241\243
> 过程试图写入的管道不存在。
> ]0;C:\Windows\System32\cmd.exe
[15:38:53.153] Got some output, clearing connection timeout
[15:38:54.463] "install" terminal command done
[15:38:54.464] Install terminal quit with output: ]0;C:\Windows\System32\cmd.exe
[15:38:54.464] Received install output: ]0;C:\Windows\System32\cmd.exe
[15:38:54.464] Failed to parse remote port from server output
[15:38:54.466] Resolver error: Error:
// 省略
[15:38:54.473] ------
解决
到网上搜,有的人是服务器ip换了,或者是其他信息换了,导致连接不上,但这些解决方法都不适用于我
我的配置文件是这样的:
我猜测是因为我给Host
的命名加上了@
符号,我试着把@
符号变成-
符号之后,就能正常连接了......
当然,出现这个报错大概率还是密钥或ip之类的问题,我这个过于特殊了
本文作者:korin5
本文链接:https://www.cnblogs.com/korin5/p/17935012.html
版权声明:本作品采用知识共享署名-非商业性使用-禁止演绎 2.5 中国大陆许可协议进行许可。
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】凌霞软件回馈社区,博客园 & 1Panel & Halo 联合会员上线
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】博客园社区专享云产品让利特惠,阿里云新客6.5折上折
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步