win10上出现的 "Bad Owner or Permissions on" 错误

在使用visual studio code的remote-ssh插件时遇到的一个问题,记录一下解决方法,供各位参考一下。

 

系统及环境:win10,git的ssh.exe

使用问题:在使用remote-ssh插件连接远程服务器时出现“Bad Owner or Permissions on”问题。

原因:windows 10 自带一个ssh.exe

 

解决办法,在vscode中设置ssh的path。具体操作如下

  1. 进入设置中。
  2. 找到下图中红色框内的设置项。为了快速找到这个选项,可以在输入框中输入remote.ssh.path,如图中所示。
  3. 在该设置项中填入自己的ssh.exe路径。

win10上出现的

参考:

  • https://github.com/Microsoft/vscode-remote-release/issues/119
  • https://blog.csdn.net/u011436427/article/details/102981641
  • https://stackoverflow.com/questions/49926386/openssh-windows-bad-owner-or-permissions
  • https://www.cnblogs.com/gs0724/p/11763640.html

 

你可能感兴趣的:(环境配置)