We had an issue with the script.....got disabled and has been enabled since then. We didn't change anything in the script.
The pageant was also stopped and started.
Now, the pageant does not pass the passphrase to winscp automatically.
When I try to login thru winscp .ssh putty login, every time I need to provide a passphrase. Once I type the passphrase I can login successfully.