khanlab / wiki

MIT License
0 stars 2 forks source link

Updates for MFA #16

Open pvandyken opened 4 months ago

pvandyken commented 4 months ago

If you're updating this, would you mind also making a change to the settings for handling MFA? These were based on the combination of some discussion with Alliance support and also the following: https://docs.alliancecan.ca/wiki/Multifactor_authentication#Configuring_your_SSH_client_to_only_ask_every_so_often

reconnect,ServerAliveInterval=0,Compression=no,follow_symlinks

The second point was at least working on a cloud instance I was testing this out on. To that end, the second point is more just to let the mount persist, else sshfs will always ask about MFA (and doesn't actually take config AFAIK into consideration).

Note these were all on Linux distros, so not sure of the equivalent for Windows.

Originally posted by @kaitj in https://github.com/khanlab/wiki/issues/15#issuecomment-1799286355

pvandyken commented 4 months ago

Also, from what I can tell Windows sshfs won't work anymore because winfsp is incompatible with MFA. I'll check with Greydon to see if he ever found a way around that (since he wrote the linked instructions), but otherwise we'll have to remove that section

kaitj commented 4 months ago

I had also used this a while ago when I had initially setup the VR desktops (prior to MFA), but I wonder if something in these instructions may be able to make it work via "Jump Hosts".

https://github.com/winfsp/sshfs-win

pvandyken commented 4 months ago

I had also used this a while ago when I had initially setup the VR desktops (prior to MFA), but I wonder if something in these instructions may be able to make it work via "Jump Hosts".

I had experimented with this before but couldn't get it to work

kaitj commented 4 months ago

I had experimented with this before but couldn't get it to work

:smiling_face_with_tear: Ahh, that is unfortunate.

pvandyken commented 3 months ago

Just a note not to actually put the comment at the end of the one field, ssh doesn't like it