Error With Python Remote Interpreter End of IO Stream Read (WSL)
Hello,
I was able to use the remote interpreter before. However, I am getting this error now

I can connect to my local ssh in windows bash.
I also tried to follow this thread https://youtrack.jetbrains.com/issue/PY-20656 to replace jsch-1.54 with jsch-1.52
but the problem still exists.
Please sign in to leave a comment.
here is the log related to the error
2018-03-16 14:09:50,517 [ 510977] DEBUG - ntellij.ssh.impl.SshConnection - Failed to create SSH channel using existing SSH sessions, creating new SSH session
2018-03-16 14:09:50,518 [ 510978] DEBUG - ntellij.ssh.impl.SshConnection - Establishing new SSH session to lin@localhost:22
2018-03-16 14:09:50,520 [ 510980] DEBUG - intellij.ssh.SshConnectionUtil - Setting up ssh connection to localhost:22 for lin, with password, with keepAliveTimeout 120000, with serverAliveCountMax 1000, with timeout null, with daemonThread false
With config StrictHostKeyChecking = no, compression.s2c = zlib,none, HashKnownHosts = no, compression.c2s = zlib,none,
2018-03-16 14:09:50,586 [ 511046] WARN - ckaging.InstalledPackagesPanel - com.intellij.remote.RemoteSdkException: Error connecting to remote host localhost
2018-03-16 14:09:57,025 [ 517485] DEBUG - ntellij.ssh.impl.SshConnection - Failed to create SSH channel using existing SSH sessions, creating new SSH session
2018-03-16 14:09:57,025 [ 517485] DEBUG - ntellij.ssh.impl.SshConnection - Establishing new SSH session to lin@localhost:22
2018-03-16 14:09:57,026 [ 517486] DEBUG - intellij.ssh.SshConnectionUtil - Setting up ssh connection to localhost:22 for lin, with password, with keepAliveTimeout 120000, with serverAliveCountMax 1000, with timeout 0, with daemonThread false
With config StrictHostKeyChecking = no, compression.s2c = zlib,none, HashKnownHosts = no, compression.c2s = zlib,none,
2018-03-16 14:09:57,095 [ 517555] INFO - tesdk.ui.CreateRemoteSdkDialog - Session.connect: java.io.IOException: End of IO Stream Read
com.jetbrains.plugins.webDeployment.CustomFileSystemException: Session.connect: java.io.IOException: End of IO Stream Read
at com.jetbrains.plugins.remotesdk.RemoteSdkUtil.checkInterpreterAndCreateHelpersDir(RemoteSdkUtil.java:354)
at com.jetbrains.plugins.remotesdk.RemoteSdkUtil$1.lambda$run$0(RemoteSdkUtil.java:289)
at com.intellij.openapi.application.impl.ApplicationImpl$1.run(ApplicationImpl.java:315)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Caused by: com.intellij.ssh.SshTransportException: Session.connect: java.io.IOException: End of IO Stream Read
at com.intellij.ssh.impl.SshConnection.a(SshConnection.kt:120)
at com.intellij.ssh.impl.SshConnection.openChannel(SshConnection.kt:68)
at com.intellij.ssh.SshConnectionService.sftp(SshConnectionService.kt:170)
at com.intellij.ssh.ConnectionBuilder.openSftpChannel(ssh.kt:100)
at com.jetbrains.plugins.remotesdk.RemoteSdkUtil.checkInterpreterAndCreateHelpersDir(RemoteSdkUtil.java:350)
... 7 more
Caused by: com.jcraft.jsch.JSchException: Session.connect: java.io.IOException: End of IO Stream Read
at com.jcraft.jsch.Session.connect(Session.java:565)
at com.jcraft.jsch.Session.connect(Session.java:183)
at com.intellij.ssh.impl.SshConnection.b(SshConnection.kt:142)
at com.intellij.ssh.impl.SshConnection.a(SshConnection.kt:109)
... 11 more
2018-03-16 14:18:22,324 [1022784] DEBUG - ntellij.ssh.impl.SshConnection - Failed to create SSH channel using existing SSH sessions, creating new SSH session
2018-03-16 14:18:22,324 [1022784] DEBUG - ntellij.ssh.impl.SshConnection - Establishing new SSH session to lin@localhost:22
2018-03-16 14:18:22,325 [1022785] DEBUG - intellij.ssh.SshConnectionUtil - Setting up ssh connection to localhost:22 for lin, with password, with keepAliveTimeout 120000, with serverAliveCountMax 1000, with timeout null, with daemonThread false
With config StrictHostKeyChecking = no, compression.s2c = zlib,none, HashKnownHosts = no, compression.c2s = zlib,none,
2018-03-16 14:18:26,796 [1027256] INFO - ide.actions.ShowFilePathAction -
Exit code 1
I am experiencing the same problem. Suddenly (after installing latest windows 10 update) it stopped working.
edit:
I have manage to make it work by changing port in the /etc/ssh/sshd_config into different than 22 (I have used 2222). After that sudo service ssh restart and it worked.
I think I have this problem too, using port 2222 seems to fix it.