繁体   English   中英

SSH 远程无法在 Microsoft Visual Studio 代码上运行

[英]SSH remote not working on Microsoft Visual Studio Code

Visual Studio 上的远程 ssh 工作正常。 但我刚刚安装了 Docker 扩展。 之后,VS 尝试从我的遥控器上的 .profile 文件中加载所有内容,但它不起作用。 我卸载了 Docker 扩展。 我认为在远程机器上删除/编辑一些由 VS 编写的文件应该会有所帮助(inside.vscode-server 文件夹)。 你能帮我解决这个问题吗?

这就是我在日志 output 文件中看到的内容。 "

6e1dff78f10: running
Acquiring lock on /home/username/.vscode-server/bin/3a6960b964327f0e3882ce18fcebd07ed191b316/vscode-remote-lock.username.3a6960b964327f0e3882ce18fcebd07ed191b316
Installation already in progress...
If you continue to see this message, you can try toggling the remote.SSH.useFlock setting
76e1dff78f10: start
exitCode==24==
listeningOn====
osReleaseId==centos==
arch==x86_64==
tmpDir==/run/user/609516==
platform==linux==
unpackResult====
didLocalDownload==0==
downloadTime====
installTime====
extInstallTime====
serverStartTime====
76e1dff78f10: end

"

您必须使用 VS Code 命令: Remote-SSH: Kill VS Code Server on Host...

  1. 打开命令面板( Ctrl + Maj + PView -> Command Palette...
  2. Remote-SSH: Kill VS Code Server on Host...
  3. 选择有问题的主机
  4. 重启 VS 代码
  5. 再试一次

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM