Post a reply

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

martin

Ok, for this scenario, currently the only way to refresh the credentials, is what you are doing already: disconnect and reconnect. I'll see, if more people have problem.
Aelius Ruivus

Hi, thanks for the answer, yes, I mean the credentials file, the one at C:\Users\[username]\.aws\credentials
On the Login window, I've selected "Credentials from AWS environment", and then select the profile I want (I use Okta, if it helps).
martin

Re: Automatic reconnection with environment credentials

Sorry, I'm lost at the "environment variables (credentials file)"?
Do you mean the AWS S3 credentials file?
Do you point to the file using environment variables?
How exactly do you refresh the credentials? Do you update the credentials file?
Aelius Ruivus

Automatic reconnection with environment credentials

Hi team, apologies if this was addressed already, but here's something I wanted to mention for a while:
I use WinSCP with environment variables (credentials file) that I must renew every 12h or so. When I renew the token, I have (or don't know) how to tell WinSCP to refresh it - connection fails, and I need to disconnect and reconnect the session (screenshots attached). In the process, it normally loses the path I was working on (I think it reverts to the path I had open when I last closed the app).
My suggestion is to have this either automatically - in case of expired token, first try to refresh it from the environment, and if it fails, prompt the user to either refresh it or check the connection/configs.
Again, apologies if this is a case of failure to RTFM, but having this changed would go a long way in streamlining my workflow :-)