국문과 유목민

[VSCode] could not establish connection to <host name>: the VS Code server failed to strat 본문

IT 견문록/Error Collecting

[VSCode] could not establish connection to <host name>: the VS Code server failed to strat

논곰 2022. 4. 3. 15:04

해결방법

VSCode에서 RemoeSSH를 활용해서 원격 서버를 이용하고 있는데 ​could not establish connection to <host name>: the VS Code server failed to strat ​오류가 발생했다. ssh key를 다시 설정해줬는데도 안돼서 찾아봤는데, 내 경우 해결방법은 어렵지 않았다. 

  • ctrl + shit + p 누르고, Remote-ssh입력한다.
  • Remote-SSH: kill VS Code Server on Host... 로 remote vs server를 꺼준다.
  • 그리고 다시 Server를 실행하면 실행이 된다. 

Remote-SSH: kill VS Code Server on Host...

참고 링크) https://github.com/microsoft/vscode-remote-release/issues/2805