Lightsail SSH Stops Working - Visual Code

1

I am using SSH remote connection to Visual Code that works for a short period of time and then drops connection as files are updated. Once connection drops SSH stops working completely; connection timeout from FileZilla, and no connection from console web terminal. The instance must be stopped and restarted to get SSH working again.

1 GB RAM, 2 vCPUs, 40 GB SSD MEAN Package

Any guidance on fix or recommendation is appreciated!

I think I found answer. Visual Code by default runs process on host that cause instance to crash. On smaller sized instance you have to disable some processes like TypeScript JS intellisense. https://medium.com/good-robot/use-visual-studio-code-remote-ssh-sftp-without-crashing-your-server-a1dc2ef0936d

Micah
질문됨 2달 전149회 조회
1개 답변
1
수락된 답변

Hello.

The following was stated in the VSCode RemoteSSH extension recommendation:
The remote host requires 1GB or more of RAM, and 2GB or more is recommended.
I think it will probably work with 1GB, but I don't think it will be very stable because of the small amount of memory.
https://code.visualstudio.com/docs/remote/ssh

1 GB RAM is required for remote hosts, but at least 2 GB RAM and a 2-core CPU is recommended.

I've also seen some similar reports on GitHub issues.
https://github.com/microsoft/vscode/issues/175830
https://github.com/microsoft/vscode-remote-release/issues/7825

profile picture
전문가
답변함 2달 전
profile picture
전문가
검토됨 2달 전
  • Thanks for detailed answer. For my current project disabling Visual Code Typescript/JS intellisense extension was sufficient and resolved SSH issue.

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠