简体   繁体   English

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

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

Remote ssh on visual studio was working okay. Visual Studio 上的远程 ssh 工作正常。 But I just installed the Docker extension.但我刚刚安装了 Docker 扩展。 After that, VS tries to load everything from the.profile file on my remote and it does not work.之后,VS 尝试从我的遥控器上的 .profile 文件中加载所有内容,但它不起作用。 I uninstalled the Docker extension.我卸载了 Docker 扩展。 I think deleting/editing some files written by VS on remote machine should help(inside.vscode-server folder).我认为在远程机器上删除/编辑一些由 VS 编写的文件应该会有所帮助(inside.vscode-server 文件夹)。 Could you please help me in figuring this out?你能帮我解决这个问题吗?

This is what I see in the log output file.这就是我在日志 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

" "

You have to use the VS Code command: Remote-SSH: Kill VS Code Server on Host...您必须使用 VS Code 命令: Remote-SSH: Kill VS Code Server on Host...

  1. Open the command palette ( Ctrl + Maj + P or View -> Command Palette... )打开命令面板( Ctrl + Maj + PView -> Command Palette...
  2. Remote-SSH: Kill VS Code Server on Host...
  3. Choose your problematic host选择有问题的主机
  4. Restart VS Code重启 VS 代码
  5. Try again再试一次

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

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