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
已提問 1 個月前檢視次數 142 次
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
專家
已回答 1 個月前
profile picture
專家
已審閱 1 個月前
  • Thanks for detailed answer. For my current project disabling Visual Code Typescript/JS intellisense extension was sufficient and resolved SSH issue.

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南