Unable to use MFA For SSH Remote Editing or Interpreters

Answered

The remote servers I'd like to connect to (both for editing and remote interpreters) requires MFA using google authenticator.

I see some references to support for this, at least for interpreters (https://blog.jetbrains.com/pycharm/2017/02/pycharm-2017-1-eap-7/), but cannot get it to work myself. I don't even see the option for it when adding a remote in either section.

Is this supported?

Thanks,

Tim

0
11 comments
Avatar
Permanently deleted user

Forgot to mention that I'm running PyCharm 2018.1.

0

Hi Torme,

Yes, it is supported. When you configure remote interpreter via SSH, after specifying password (or keypair) you should be prompted for the code. Have you tried that?
If yes, what happens then?

0
Avatar
Permanently deleted user

Yeah, I selected a private key pair (the same one I use to SSH normally) and click next. It tries to connect, but then bumps me back to the previous screen with "Connnetion to torme@(host) failed: Authentication failure". I don't receive a prompt asking for an MFA token at all.

0
Avatar
Permanently deleted user

To clarify as well, I'm able to login successfully via SSH using this same private key pair.

0

Please reproduce the problem and then upload your logs folder zipped (Help | Compress Logs and Show in...) to https://uploads.services.jetbrains.com/ and let me know the name of that zip file.

0
Avatar
Permanently deleted user

Sorry for the delay here. I've added it and the file name is

logs-20181126-114309.zip

Thanks!

Tim

0

Thanks!

Could you please make sure that connection is not blocked by firewall/antivirus? Try disabling them.

Please also try setting SFTP deployment to that remote host (https://www.jetbrains.com/help/pycharm/deploying-applications.html) and then, if successful, try adding SSH interpreter using Existing server configuration.

0
Avatar
Permanently deleted user

I don't think I have any firewall or antivirus software that would interfere, given that this works from other applications.

But, trying via the SFTP deployment yields more informative error messages at least:

logs-20181127-143112.zip

Seems that its unable to determine the auth type based on the prompt.

0

Please press Ctrl+Opt+Shift+/, click Registry, search for deployment.BouncyCastleJCE and enable it.
Then, restart PyCharm and check if it helped.

Please check that your IP is allowed.

If nothing helps, add the following lines to "Help | Debug Log Settings...", reproduce the issue with SFTP deployment (testing connection should be enough) and provide updated idea.log.

Lines to add:
#com.intellij.ssh
#com.jetbrains.plugins.webDeployment

0
Avatar
Permanently deleted user

Seems to have the same issue:

logs-20181129-124623.zip

I added the debugging output as well.

0

Please sign in to leave a comment.