[Python] PyCharm: Stuck on Introspecting SSH server because two-factor login required for rsync

Discussão em 'Python' iniciado por Stack, Fevereiro 10, 2025.

  1. Stack

    Stack Membro Participativo

    I work on a cluster that requires two-factor login for every new connection. When I try creating a remote python interpreter in PyCharm, I can successfully connect, which requires 1 round of two-factor login via Duo. But then, PyCharm tries to test whether rsync works, which requires another round of two-factor authentication:

    Successfully connected to rschaef@login.sherlock.stanford.edu:22

    > pwd
    Failed to execute command


    Checking rsync connection...
    /usr/bin/rsync -n -e "ssh -p 22 " rschaef@login.sherlock.stanford.edu:

    rschaef@login.sherlock.stanford.edu's password:


    (rschaef@login.sherlock.stanford.edu) Duo two-factor login for rschaef



    Enter a passcode or select one of the following options:



    1. Duo Push to XXX-XXX-3013

    2. Phone call to XXX-XXX-3013

    3. SMS passcodes to XXX-XXX-3013



    Passcode or option (1-3):


    The problem is that PyCharm gives me no way to specify 1, 2 or 3, so I cannot authenticate again for rsync to complete. Consequently, I cannot move past this rsync step. Can someone please help me?

    Continue reading...

Compartilhe esta Página