当前位置: 首页 > news >正文

解决vscode远程连接报尝试写入的管道不存在,ssh remote, The process tried to write to a nonexistent pipe.[已解决]

第一步:

第二步:

 

第三步:

 ctrl+s保存即可

删除原来的config文件


在使用Rmote-ssh连接远程服务器时,会出现尝试写入的管道不存在的错误

[16:45:21.592] > Bad owner or permissions on C:\\Users\\DY/.ssh/config
> 
[16:45:21.689] > The process tried to write to a nonexistent pipe.
> 
[16:45:22.091] "install" terminal command done
[16:45:22.092] Install terminal quit with output: The process tried to write to a nonexistent pipe.
[16:45:22.093] Received install output: The process tried to write to a nonexistent pipe.
[16:45:22.096] Resolver error: The process tried to write to a nonexistent pipe
[16:45:22.107] ------

尝试以下方案仍无法解决:

  • 本地的C:\Users\user\.sshknown_hosts的原服务器信息全部删掉,然后重新连接
  • 本地的C:\Users\user\.ssh\config删掉,然后重新连接
  • 修改.ssh文件的权限

这个时候,打开vscode的设置File—preference-setting,将C:\Users\用户名\.sshconfig的路径输入到config file下

重新连接即可

发布于 2023-10-31 17:27・北京
Visual Studio Code
ssh
Linux

还不行的话1.在设置里搜show login terminal,选择始终显示SSH登陆终端2.以管理员身份运行vscode