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
gefragt vor 2 Monaten149 Aufrufe
1 Antwort
1
Akzeptierte Antwort

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
EXPERTE
beantwortet vor 2 Monaten
profile picture
EXPERTE
überprüft vor 2 Monaten
  • Thanks for detailed answer. For my current project disabling Visual Code Typescript/JS intellisense extension was sufficient and resolved SSH issue.

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen