Search code examples
intellij-ideajetbrains-gateway

Jetbrains Gateway settings for frequent disconnects


I’m using Jetbrains Gateway to use IntelliJ to work on the code in a remote Linux machine. I connect via SSH. I connect and work fine initially, the latency is around 150 ms but it keeps disconnecting. I realized it disconnects when I stop coding and spend some time on other things (browser etc.). When I want to re-connect it asks for SSH key passphrase, I need to enter it multiple times and the 'Save Permanently' option won't work.

  1. Is there a setting I can do to keep it connected?
  2. Could this be related to my company's network, in which case again can I increase timeout or retry on fail by some settings?

Solution

  • I started using Remote Development feature of IntelliJ connecting to the same remote machine as described here https://www.jetbrains.com/help/idea/remote-development-starting-page.html

    enter image description here

    It does not disconnect, I can work whole day (tested 12+ hours) without any connection issues.