13 Haziran 2020 Cumartesi

Prevent idle SSH timeouts: client_loop: send disconnect: Broken pipe

If there is no package transfer happens during SSH sesison,  sshd automatically closes that session. On Ubuntu, in order to prevent that;

Open sshd_config using vim:

vim /etc/ssh/sshd_config

Add lines:

ClientAliveInterval 60
ClientAliveCountMax 720

And then apply changes by restarting sshd;

sudo /etc/init.d/ssh restart
---
ClientAliveInterval configures the server to send null packets to clients every 60 seconds and ClientAliveCountMax configures the server to close the connection if the client has been inactive for 720 intervals that are 60*720 = 43200 which equals 12 hours.

23 Mayıs 2020 Cumartesi

Intellij Gradle debug Cannot resolve constructor 'new groovy.lang.GroovyClassLoader(_$_23parentLoader)' error

While using IntelliJ IDEA Community Edition for debugging my Gradle task, at some point I needed to evaluate expression to see what is current state of the project.

When I type expression and hit to evaluate button, result area displays an error message

Cannot resolve constructor 'new groovy.lang.GroovyClassLoader(_$_23parentLoader)'

In order to fix that, I change expression language from Groovy to Java.


Related Posts Plugin for WordPress, Blogger...