how do I use remote development if the remote cluster requires using duo sign in?

已回答

how do I use remote development if the remote cluster requires using duo sign in?

1

PyCharm supports MFA https://youtrack.jetbrains.com/issue/PY-34222#focus=Comments-27-3684054.0-0

Have you tried configuring an SSH interpreter yet?

0

# 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][1]][1]
[![enter image description here][2]][2]

----

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:

- https://stackoverflow.com/questions/32211813/pycharm-remote-development
- https://stackoverflow.com/questions/37159539/pycharm-cant-use-remote-interpreter
- https://stackoverflow.com/questions/44396067/what-is-the-best-way-of-doing-a-remote-development-using-pycharm-community-versi
- https://stackoverflow.com/questions/46287453/remote-development-in-pycharm-without-local-copies

ideally the debugger and all the features of pycharm still work.

----

related links:

- https://intellij-support.jetbrains.com/hc/en-us/community/posts/360009663879-how-do-I-use-remote-development-if-the-remote-cluster-requires-using-duo-sign-in-
- https://stackoverflow.com/questions/62286320/how-does-one-configure-the-vs-code-sftp-to-work-on-save-when-security-duo-is-act
- https://stackoverflow.com/questions/63796803/how-do-i-use-remote-deployment-e-g-push-local-copies-on-save-in-pycharm-if-th
- https://www.quora.com/unanswered/How-do-I-use-remote-deployment-e-g-push-local-copies-on-save-in-PyCharm-if-the-remote-cluster-requires-using-duo-sign


[1]: https://i.stack.imgur.com/BT7lk.png
[2]: https://i.stack.imgur.com/wjCuG.png

0

@... 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/

0

what does "Have you tried configuring an SSH interpreter yet?" mean? I think I need more precise instructions. I'm happy to try it!

0

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

0

@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.

0

@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.

0

@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?

0

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?

0

@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?

0

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)

0

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

0

@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?

0

why did you think a SSH interpreter would be helpful for me?

0

what was the google authenticator window you showed me?

0

>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

0

@Sergey Karpov can I create a deployment configuration using duo or not?

0

the duo authentictor, this one: https://duo.com/

 

does pycharm support it?

0

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!

0

solution, test connection and dialog window appears when making a deployment configuration. Then use OTP passcode in pycharm pop up.

0

请先登录再写评论。