Two-factor authentication is a major problem with WinSCP
Hello,
My institution uses 2-factor authentication (password + code generated on my phone). I like to open 2 instances of WinSCP, 2 Putty, and them move files back and forth my computer. This means that I need to input the code from my phone at least 6 times! It takes me 3 minutes just to start working.
The response of the tech support is as follows:
"The problem lies in the behaviour of WinSCP. What happens when you try to edit a file or upload a new one is that the program starts a new ssh-session to the server. It will reuse the username and password but will ask for a new code as this in fact a new connection. As this is a new session you can not reuse the code. This also mean that you will not be able to fix this regardless of how long the code is valid, not even through scripting."
Is there anything that you can do to address this problem? Maybe I can use an older version of WinSCP? I have been using WinSCP for 20 years and want to keep using it, but it doesn't work well with this two-steps authentication procedure.
Thank you,
Drakan