Having SSH Connection timeout


Recently I realised that DB connections did not work anymore. I downloaded Datagrip just to find the issues were the same.
My connections need to go through SSH bastion. The error is:

SSH tunnel creation failed:.
com.intellij.execution.ExecutionException: SSH: java.net.SocketTimeoutException: connect timed out

The relevant idea.log messages:

2019-08-30 11:47:38,766 [ 408676] INFO - ution.rmi.RemoteProcessSupport - Port/ID: 62701/RemoteDriverImplbfa1c672 
2019-08-30 11:47:39,319 [ 409229] INFO - ution.rmi.RemoteProcessSupport -
2019-08-30 11:47:39,701 [ 409611] INFO - ution.rmi.RemoteProcessSupport - Terminating: 62701/RemoteDriverImplbfa1c672
2019-08-30 11:47:39,849 [ 409759] INFO - ution.rmi.RemoteProcessSupport - Process finished with exit code 137 (interrupted by signal 9: SIGKILL)
2019-08-30 11:47:57,204 [ 427114] INFO - port.random.BouncyCastleRandom - Generating random seed from SecureRandom.
2019-08-30 11:47:57,322 [ 427232] WARN - om.intellij.ssh.impl.sshj.sshj - Unsupported options in config: [HashKnownHosts=no, compression.s2c=zlib,none]
2019-08-30 11:47:58,168 [ 428078] WARN - om.intellij.ssh.impl.sshj.sshj - Failed to connect. Brief info: SSHJ connection to <crc32=ubz4tp>@<crc32=10b3r67>:22
compressionFactories from config: none, with signatureFactories: ssh-rsa, ssh-dss, ecdsa-sha2-nistp256, ecdsa-sha2-nistp384, ecdsa-sha2-nistp521, ssh-ed25519, with keep alive interval 120 seconds, with keep alive count max 10, with com.intellij.ssh.OpenSshLikeHostKeyVerifier(knownHostsFile=[/Us<crc32=1e5yqhe>], strictHostKeyChecking=NO), with identity {/Us<crc32=1w7r5it>{,.pub}, without passphrase}, with authentications: publickey by PlatformAuthPublickey, password by AuthPassword, keyboard-interactive by AuthKeyboardInteractive, with connect timeout 20
java.net.SocketTimeoutException: connect timed out

Can someone help me out please?

Comment actions Permalink

Just realised a similar post was created. Couldn't find it by keyword timed out for some reason, but it's also unanswered.

Comment actions Permalink

@Eduardo Pereira,

There is an issue https://youtrack.jetbrains.com/issue/IDEA-218686 that looks similar to your description.

Comment actions Permalink

Thanks Vasily.

Will wait for issue fix

Comment actions Permalink


Just figured about that my symptoms are from the bug here: https://youtrack.jetbrains.com/issue/IDEA-220958
While it is not fixed, all I had to do is to remove the following line

ConnectTimeout 15

From the file ~/.ssh/config


Please sign in to leave a comment.