Unable to add ssh interpreter

已回答

Hey,

 

I have pycharm professional version. 

For some reason I don't have the option to add an ssh interpreter. I tried deleting the

/Users/eranpeleg/Library/Application Support/JetBrains folder and reinstalling but still dont see anything. Can you please help?

.

0

After you deleted the JetBrains folder, did PyCharm start with default settings?
Check if there are any Disabled plugins in the idea.log (Help | Show Log in).

0

2023-05-10 12:34:59,508 [    118]   INFO - #c.i.i.p.PluginManager - Disabled plugins: PyScript (231.8770.66), Qodana (231.8770.66), Space (231.8770.66), Performance Testing (231.8770.66), Shared Project Indexes (231.8770.66), Tailwind CSS (231.8770.66), Task Management (231.8770.66), EditorConfig (231.8770.66), Code With Me (231.8770.66), ReStructuredText (231.8770.66), Package Checker (231.8770.66), Sass (231.8770.66), IDE Features Trainer (231.8770.66), Less (231.8770.66), HTTP Client (231.8770.66), Machine Learning Code Completion (231.8770.66), Diagrams (231.8770.66), Machine Learning in Search Everywhere (231.8770.66), Copyright (231.8770.66), File Watchers (231.8770.66), TextMate Bundles (231.8770.66), Time Tracking (231.8770.66), Grazie Lite (231.8770.66), Styled Components & Styled JSX (231.8770.66)

 

0

Let's try the following:

1. Go to Help | Edit Custom VM Options...
2. Find what directory the -Didea.plugins.path points to, close PyCharm, and remove that directory.
3. Start PyCharm.

Has it helped?

0

Thank you, I managed to get the ssh config again. But now eventhough I'm able to connect via terminal ssh, I get an exception when using test connection on pycharm. Here's the exception from the log file.

 

2023-05-10 12:37:09,146 [ 129756] SEVERE - #c.i.o.a.i.ApplicationImpl - modulus value out of range
java.lang.IllegalArgumentException: modulus value out of range
    at org.bouncycastle.crypto.params.RSAKeyParameters.validate(Unknown Source)
    at org.bouncycastle.crypto.params.RSAKeyParameters.<init>(Unknown Source)
    at org.bouncycastle.crypto.params.RSAKeyParameters.<init>(Unknown Source)
    at org.bouncycastle.jcajce.provider.asymmetric.rsa.BCRSAPublicKey.<init>(Unknown Source)
    at org.bouncycastle.jcajce.provider.asymmetric.rsa.KeyFactorySpi.engineGeneratePublic(Unknown Source)
    at java.base/java.security.KeyFactory.generatePublic(KeyFactory.java:345)
    at net.schmizz.sshj.common.KeyType$1.readPubKeyFromBuffer(KeyType.java:62)
    at net.schmizz.sshj.common.Buffer.readPublicKey(Buffer.java:489)
    at com.hierynomus.sshj.userauth.keyprovider.OpenSSHKeyFileUtil.initPubKey(OpenSSHKeyFileUtil.java:59)
    at com.hierynomus.sshj.userauth.keyprovider.OpenSSHKeyV1KeyFile.initPubKey(OpenSSHKeyV1KeyFile.java:114)
    at com.hierynomus.sshj.userauth.keyprovider.OpenSSHKeyV1KeyFile.init(OpenSSHKeyV1KeyFile.java:85)
    at net.schmizz.sshj.userauth.keyprovider.BaseFileKeyProvider.init(BaseFileKeyProvider.java:55)
    at net.schmizz.sshj.SSHClient.loadKeys(SSHClient.java:578)
    at com.intellij.ssh.impl.sshj.PlatformAuthPublickey.<init>(SshjConnectionUtil.kt:899)
    at com.intellij.ssh.impl.sshj.PlatformAuthPublickey.<init>(SshjConnectionUtil.kt:902)
    at com.intellij.ssh.impl.sshj.SshjConnectionUtilKt.makePublicKeyAuthenticators(SshjConnectionUtil.kt:374)
    at com.intellij.ssh.impl.sshj.SshjConnectionUtilKt.setUpSessionForSshJ(SshjConnectionUtil.kt:150)
    at com.intellij.ssh.impl.SshConnection.doSshjSshConnection(SshConnection.kt:211)
    at com.intellij.ssh.impl.SshConnection.access$doSshjSshConnection(SshConnection.kt:27)
    at com.intellij.ssh.impl.SshConnection$createSshSessionForSshj$1.invoke(SshConnection.kt:204)
    at com.intellij.ssh.impl.SshConnection$createSshSessionForSshj$1.invoke(SshConnection.kt:201)
    at com.intellij.ssh.Ssh.wrapBlockingSshCall(ssh.kt:393)
    at com.intellij.ssh.Ssh.wrapBlockingSshCall$default(ssh.kt:374)
    at com.intellij.ssh.impl.SshConnection.createSshSessionForSshj(SshConnection.kt:201)
    at com.intellij.ssh.impl.SshConnection.access$createSshSessionForSshj(SshConnection.kt:27)
    at com.intellij.ssh.impl.SshConnection$checkCanAuthenticate$1.invoke(SshConnection.kt:136)
    at com.intellij.ssh.impl.SshConnection$checkCanAuthenticate$1.invoke(SshConnection.kt:131)
    at com.intellij.ssh.Ssh.wrapBlockingSshCall(ssh.kt:393)
    at com.intellij.ssh.Ssh.wrapBlockingSshCall$default(ssh.kt:374)
    at com.intellij.ssh.impl.SshConnection.checkCanAuthenticate(SshConnection.kt:131)
    at com.intellij.ssh.SshConnectionService.checkCanAuthenticate(SshConnectionService.kt:210)
    at com.intellij.ssh.Ssh.checkCanAuthenticate(ssh.kt:262)
    at com.intellij.ssh.Ssh.access$checkCanAuthenticate(ssh.kt:1)
    at com.intellij.ssh.ConnectionBuilder.checkCanAuthenticate(ssh.kt:107)
    at com.intellij.ssh.ui.unified.SshCredentialsEditorEx$1.lambda$actionPerformed$0(SshCredentialsEditorEx.java:68)
    at com.intellij.openapi.application.impl.ApplicationImpl$1.run(ApplicationImpl.java:252)
    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:833)

0

Could you share the known_hosts file?
You can upload it to our FTP server and let me know the upload ID https://uploads.services.jetbrains.com/

0

2023_05_10_s2M1hiQB37SCegC4Wdjjog 

 

Also updated the idea.log 

 

0

We suspect the issue might be caused by a corrupted key.
How did you generate it? What command did you use?

0

请先登录再写评论。