rationalmatter / Juno-Issue-Tracker

Defect Tracker for Juno
78 stars 1 forks source link

Help with dealing with 2FA when connecting to a remote Jupyter server #409

Open heathermacgregor opened 2 months ago

heathermacgregor commented 2 months ago

Hello,

I am trying to connect (via local port forwarding) to a remote server with Juno Connect.

Normally, I would connect via entering ssh -L 8888:localhost:8888 xxx.edu in my terminal. Once I connect, I am prompted to enter my password and a one-time code.

Authentication settings on Juno Connect have a setting for password, but I am unsure if there is anything that is able to handle the 2FA step I need to do afterwards. When I try to connect after entering the appropriate information in the authentication settings, it fails to establish a connection.

Environment (please complete the following information):

Thanks for your time,

Heather

alexstaravoitau commented 2 months ago

@heathermacgregor Juno Connect's SSH tunnelling doesn't support 2FA I'm afraid—unless this is the 2FA of the JupyterHub you're connecting to?

If it's the connection itself that needs 2FA, I suppose you could use some other port forwarding app that supports this, and configure Juno Connect to connect to localhost with the mapped port.