簡體   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