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
asked 18 days ago126 views
1 Answer
1
Accepted Answer

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
EXPERT
answered 18 days ago
profile picture
EXPERT
reviewed 18 days ago
  • Thanks for detailed answer. For my current project disabling Visual Code Typescript/JS intellisense extension was sufficient and resolved SSH issue.

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions