I am developing a Java application to run it on a raspberry pi. My development environment is IntelliJ with Embedded Linux JVM Debugger plugin installed on a Windows 10 Pro laptop. I can debug the application on my machine. I added a configuration to deploy the application to a "local" raspberry via Ethernet connection on a private network. I can deploy and debug the application correctly.
Now I need to do the same on a remote raspberry in the customer's facilities. I added a configuration with remote raspberry's IP address, username, password and run as sudo checked. Clicking Validate Connection button, the response is Connection Success. But if I want to debug with this configuration, I get this error in console window:
Cannot connect to the Embedded System Target java.io.IOException: inputstream is closed
Process finished with exit code -1
I can connect to the remote raspberry using SSH. This raspberry is working with Raspbian GNU/Linux 9 (Kernel: Linux 4.9.41-v7+). I tried rebooting, and it does not resolve the problem.
Do you know why I can not debug the application?