invalid private key in connection settings

1. read the cloud provider instruction 

Add your SSH Key

SSH Keys are a secure way to log into your instances through SSH. To generate your key, run ssh-keygen -t rsa -b 4096 -C "user@email.com" in your terminal.

2. generate keypair and add public key to server

3. try to add private key in PhpStorm

 

1
3 comments

Unfortunately, the SSH lib we're using (Jsch) does not support this type of keys.
Please use ssh-agent as a workaround: https://youtrack.jetbrains.com/issue/PY-24325#focus=streamItem-27-3169574.0-0

We're working in swapping the library for another one: https://youtrack.jetbrains.com/issue/PY-35528

0

Seems like PY-35528 issue was removed. Is there an issue for the problem? I'd like to vote for it

0

Yevhen Saklakov, PY-35528 is not visible to the public, but it's been fixed in 2019.2 - we are using SSHJ instead of JSch for a while now. We also don't have many new invalid privatekey reports: https://youtrack.jetbrains.com/issues?q=project:wi,web,idea,ideabkl,ruby,py,dbe,jbr%20%22invalid%20privatekey

Please add #com.intellij.ssh to Help | Diagnostic Tools | Debug Log Settings, reproduce the issue, and then submit your logs (Help | Collect Logs and Diagnostic Data) in a support ticket (Help | Contact Support).

0

Please sign in to leave a comment.