简体   繁体   中英

SSH remote not working on Microsoft Visual Studio Code

Remote ssh on visual studio was working okay. But I just installed the Docker extension. After that, VS tries to load everything from the.profile file on my remote and it does not work. I uninstalled the Docker extension. I think deleting/editing some files written by VS on remote machine should help(inside.vscode-server folder). Could you please help me in figuring this out?

This is what I see in the log output file. "

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...

  1. Open the command palette ( Ctrl + Maj + P or View -> Command Palette... )
  2. Remote-SSH: Kill VS Code Server on Host...
  3. Choose your problematic host
  4. Restart VS Code
  5. Try again

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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