how do I use remote development if the remote cluster requires using duo sign in? Follow Answered Miranda9 Created September 08, 2020 14:56 how do I use remote development if the remote cluster requires using duo sign in?
I know these links are for vs-code but they could be useful for us:
PyCharm supports MFA https://youtrack.jetbrains.com/issue/PY-34222#focus=Comments-27-3684054.0-0
Have you tried configuring an SSH interpreter yet?
# How do I use remote deployment (e.g. push local copies on save) in Pycharm if the remote cluster requires using duo sign?
I used to be able to push on save with the cluster I am using. However, now the cluster requires duo sign in. I still want to be able to push on save from my local to the sever. How do I do that?
I checked the options but I can't see anything obvious that might be helpful to me:
[![enter image description here]]
[![enter image description here]]
I am aware that there might be remote development options (vs-code has something like that). If that is available for pycharm that would be a ok alternative but even if it works I was hoping to have the clusters in sync with my local so to have less copies of everything lying around. I have to admit I need to research and try this option more but I'm unsure if that is the option I want. But if the old workflow does not work it might be the only viable alternative.
Some links I need to read:
ideally the debugger and all the features of pycharm still work.
@... are there clear instructions how to try out the google authenticator? this link only talks about the feature but not how to use it: https://blog.jetbrains.com/pycharm/2017/02/pycharm-2017-1-eap-7/
what does "Have you tried configuring an SSH interpreter yet?" mean? I think I need more precise instructions. I'm happy to try it!
Yes, sorry, here is our docs page describing how to configure an SSH interpreter https://www.jetbrains.com/help/pycharm/configuring-remote-interpreters-via-ssh.html#ssh
Fully remote development is not supported yet https://youtrack.jetbrains.com/issue/IDEA-226455
@Sergey Karpov I see from the first page you sent google authentictor works. I have the duo app that also sends me passcodes. Can I use that instead of google authenticator? It seems I can't have google authenticator give me the passcodes (when I scan the barcode it doesn't recognize it) but it does recognize it when I sue the duo app.
@Sergey Karpov can you tell me what "configuring an SSH interpreter" is supposed to do and how it's solves my request? that way it will be much easier to follow the instructions if I know what I am doing and why and how it relates to my main objective.
@Sergey Karpov I am confused about something. I already had a Deployment configuration set up for my 3 projects (they also use the same cluster). Will they interfere with this SHH configuration you are suggesting?
is it possible to work on this on the private submission request I placed and when we conclude I can paste the solution here?
I don't understand, why do I need to create a ssh interpreter and not just a new deployment configuration that asks me for the passcode from my duo authenticator app?
@Sergey Karpov I read carefully through the https://www.jetbrains.com/help/pycharm/configuring-remote-interpreters-via-ssh.html?_ga=2.199709230.1256809307.1599492550-1893513047.1594240451#ssh for setting a SHH interpreter, however, at no point did it mention the 2 step identification that duo or google authenticator would require. Can you clarify that to me?
is this https://www.jetbrains.com/help/pycharm/creating-a-remote-server-configuration.html?_ga=2.199709230.1256809307.1599492550-1893513047.1594240451#overload (creating a remote sever configuration) different from the other thing you suggested me to do? (creating an SSH interpreter)
Ahh, I didn't realize that by "remote development" you mean a deployment configuration. Perhaps an SSH interpreter is not relevant in your case.
PyCharm uses PhpStorm's deployment functionality and it seems they don't support MFA yet, unfortunately https://youtrack.jetbrains.com/issue/WI-18837
@Sergey Karpov I want anything were I can use pycharm but push my code easily to the cluster I am using. e.g. edit files directly on cluster or push on save would work for me. What do you think is my best solution?
why did you think a SSH interpreter would be helpful for me?
what was the google authenticator window you showed me?
>why did you think a SSH interpreter would be helpful for me?
I thought you wanted to run your code on that cluster using an SSH interpreter.
I believe this comment from the developer answers some of your questions https://youtrack.jetbrains.com/issue/PY-34222#focus=Comments-27-4384870.0-0
So it boils down to configuring your server to use google authenticator and as mentioned in the comment PyCharm will simply ask you for the password.
If your server uses another authenticator and you can't configure a deployment configuration in PyCharm, then it could be that we don't support that authenticator in which case please file an issue to https://youtrack.jetbrains.com/issues/WI
@Sergey Karpov can I create a deployment configuration using duo or not?
the duo authentictor, this one: https://duo.com/
does pycharm support it?
they say "it works" in the link you shared (https://youtrack.jetbrains.com/issue/PY-34222?_ga=2.133003022.1256809307.1599492550-1893513047.1594240451#focus=Comments-27-4384870.0-0) but they never say what "it" was. Could someone tell me what it was and a link to precise instructions for me to try it out too. Thanks!
solution, test connection and dialog window appears when making a deployment configuration. Then use OTP passcode in pycharm pop up.