Can't connect to remote development by SSH

After upgraded PHPStorm yesterday and I can't connect to RD by SSH.

Build #PS-241.14494.237, built on March 27, 2024

2024-04-05 14:15:22,481 [  83139] SEVERE - #c.i.o.a.i.RwLockHolder - Illegal base64 character 7c
java.lang.IllegalArgumentException: Illegal base64 character 7c
       at java.base/java.util.Base64$Decoder.decode0(Base64.java:848)
       at java.base/java.util.Base64$Decoder.decode(Base64.java:566)
       at java.base/java.util.Base64$Decoder.decode(Base64.java:589)
       at net.schmizz.sshj.transport.verification.OpenSSHKnownHosts$EntryFactory.parseEntry(OpenSSHKnownHosts.java:293)
       at net.schmizz.sshj.transport.verification.OpenSSHKnownHosts.readEntries(OpenSSHKnownHosts.java:97)
       at net.schmizz.sshj.transport.verification.OpenSSHKnownHosts.<init>(OpenSSHKnownHosts.java:78)
       at net.schmizz.sshj.transport.verification.OpenSSHKnownHosts.<init>(OpenSSHKnownHosts.java:68)
       at com.intellij.ssh.SingleKnownHostsDelegate.<init>(OpenSshLikeHostKeyVerifierImpl.kt:190)
       at com.intellij.ssh.OpenSshLikeHostKeyVerifierImpl.<init>(OpenSshLikeHostKeyVerifierImpl.kt:42)
       at com.intellij.ssh.impl.sshj.SshjConnectionUtilKt.setUpSessionForSshJ(SshjConnectionUtil.kt:141)
       at com.intellij.ssh.impl.SshConnection.doSshjSshConnection(SshConnection.kt:239)
       at com.intellij.ssh.impl.SshConnection.access$doSshjSshConnection(SshConnection.kt:28)
       at com.intellij.ssh.impl.SshConnection$createSshSessionForSshj$1.invoke(SshConnection.kt:232)
       at com.intellij.ssh.impl.SshConnection$createSshSessionForSshj$1.invoke(SshConnection.kt:229)
       at com.intellij.ssh.Ssh.wrapBlockingSshCall(ssh.kt:396)
       at com.intellij.ssh.Ssh.wrapBlockingSshCall$default(ssh.kt:377)
       at com.intellij.ssh.impl.SshConnection.createSshSessionForSshj(SshConnection.kt:229)
       at com.intellij.ssh.impl.SshConnection.access$createSshSessionForSshj(SshConnection.kt:28)
       at com.intellij.ssh.impl.SshConnection$checkCanAuthenticate$1.invoke(SshConnection.kt:159)
       at com.intellij.ssh.impl.SshConnection$checkCanAuthenticate$1.invoke(SshConnection.kt:154)
       at com.intellij.ssh.Ssh.wrapBlockingSshCall(ssh.kt:396)
       at com.intellij.ssh.Ssh.wrapBlockingSshCall$default(ssh.kt:377)
       at com.intellij.ssh.impl.SshConnection.checkCanAuthenticate(SshConnection.kt:154)
       at com.intellij.ssh.SshConnectionService.checkCanAuthenticate(SshConnectionService.kt:212)
       at com.intellij.ssh.Ssh.checkCanAuthenticate(ssh.kt:264)
       at com.intellij.ssh.Ssh.access$checkCanAuthenticate(ssh.kt:1)
       at com.intellij.ssh.ConnectionBuilder.checkCanAuthenticate(ssh.kt:109)
       at com.intellij.ssh.ui.unified.SshCredentialsEditorEx$1.lambda$actionPerformed$0(SshCredentialsEditorEx.java:68)
       at com.intellij.openapi.application.impl.RwLockHolder$executeOnPooledThread$1.run(RwLockHolder.kt:154)
       at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539)
       at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
       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)
 
0
3 comments

Hi,

Thank you for reporting!

Please apply the workaround from this YouTrack thread: https://youtrack.jetbrains.com/issue/IDEA-350187. It is required to either fix or delete the `known_hosts` file.

0

I have a similar problem. 

Error message:

SSH Connection Check Failed
Failed to connect to IDE backend: Illegal base64 character 3a

Getting 404 when using the Link suggested by Anastasiia.

What and how to fix the ‘knwn_hosts’ file?

0

Hi Wetli,

Thank you for noticing. I fixed the link

Either try to find and delete the line that is causing the issue, or simply remove the `known_hosts` file.

0

Please sign in to leave a comment.