Access to cluster with two-factor authentication

Hello everyone,

I recently gained access to a cluster that requires two-factor authentication for login (it uses Google Authenticator). Is it possible to configure AiiDA on my computer to access this cluster nonetheless?

Thank you!

Hey there, it depends a bit on how the 2FA works. If you can authorize and then use normal ssh to connect to the machine it is in principle possible. In this case, you would simply authenticate and then start the daemon and the daemon will be able to connect for as long as the authentication token is valid. Once it expires, connections will start to fail and the daemon will pause calculations running on that computer (pause them on your computer, not actually on the remote). You can reauthenticate and restart the daemon run verdi process play --all to start playing all calculations again.

I see, thanks for the explanation Sebastiaan!