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.

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则