Closed an2riy closed 7 months ago
Could you provide the logs related to this exception from idea.log
? Please make sure to click the "Test Connection" button to generate the logs, not just the "Test SSH Connection".
Hello. See in the log only this:
2024-04-04 10:04:02,746 [ 51329] WARN - #org.elasticsearch4idea.lH - Error while testing connection
com.jcraft.jsch.JSchException: fromBase64: invalid base64 data
at com.jcraft.jsch.Util.fromBase64(Util.java:77)
at com.jcraft.jsch.KnownHosts.setKnownHosts(KnownHosts.java:257)
at com.jcraft.jsch.KnownHosts.setKnownHosts(KnownHosts.java:58)
at com.jcraft.jsch.JSch.setKnownHosts(JSch.java:405)
at org.elasticsearch4idea.lX.a(SourceFile:36)
at org.elasticsearch4idea.ln.a(SourceFile:166)
at org.elasticsearch4idea.ln.a(SourceFile:74)
at org.elasticsearch4idea.lk$g.a(SourceFile:63)
at org.elasticsearch4idea.lk$g.invoke(SourceFile:62)
at kotlin.SynchronizedLazyImpl.getValue(LazyJVM.kt:74)
at org.elasticsearch4idea.lk.a(SourceFile:69)
at org.elasticsearch4idea.lk.a(SourceFile:59)
at org.elasticsearch4idea.lk$k.invoke(SourceFile:336)
at org.elasticsearch4idea.q.a(SourceFile:24)
at org.elasticsearch4idea.q.b(SourceFile:49)
at org.elasticsearch4idea.r$a.run(SourceFile:27)
at com.intellij.openapi.progress.impl.CoreProgressManager.startTask(CoreProgressManager.java:434)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.startTask(ProgressManagerImpl.java:132)
at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcessWithProgressAsynchronously$5(CoreProgressManager.java:484)
at com.intellij.openapi.progress.impl.ProgressRunner.lambda$submit$4(ProgressRunner.java:248)
at com.intellij.openapi.progress.ProgressManager.lambda$runProcess$0(ProgressManager.java:73)
at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcess$1(CoreProgressManager.java:192)
at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$executeProcessUnderProgress$12(CoreProgressManager.java:610)
at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:685)
at com.intellij.openapi.progress.impl.CoreProgressManager.computeUnderProgress(CoreProgressManager.java:641)
at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:609)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:78)
at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:179)
at com.intellij.openapi.progress.ProgressManager.runProcess(ProgressManager.java:73)
at com.intellij.openapi.progress.impl.ProgressRunner.lambda$submit$5(ProgressRunner.java:248)
at com.intellij.openapi.progress.impl.ProgressRunner$ProgressRunnable.run(ProgressRunner.java:498)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:702)
at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:699)
at java.base/java.security.AccessController.doPrivileged(AccessController.java:399)
at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1.run(Executors.java:699)
at java.base/java.lang.Thread.run(Thread.java:840)
Caused by: java.lang.ArrayIndexOutOfBoundsException: Index 78 out of bounds for length 78
at com.jcraft.jsch.Util.fromBase64(Util.java:61)
... 37 more
It seems something with my ~/.ssh/known_hosts, I can connect to any ssh server in the console but have the base64 error in the plugin after I removed ~/.ssh/known_hosts I can connect now with the plugin.
The SSH connection stopped to work: It complains about base64.
Environment information: