Previously I was able to run a python script on a remote server that connected to remote switch and did "things". For some reason this is no longer working. It appears the agent is not being forwarded to my remote server. Specifically the "SSH_AUTH_SOCK" var is not being set during the execution of the remote ssh interpreter.
[local-host] --> [remote-host] --> [network device]
I do develop of network scripting stuff on the "remote-host". It has access to the "network device". If I normally, from the command line, ssh into the "remote host" I can then ssh into the "network device". I've been using pycharm to successfully develop in this environment for a long while. I can "Run" my python scripts on the "remote host" through pycharm and they connect to the "network device" just fine. Everything works great.
For some reason this has stopped working. I notice that when I ssh from the cli into network device I can run "ssh-add -L" on the "remote host" and see all my identities. However when done through pycharm's remote interpreter its not even connecting to the authentication agent. If I try and run "ssh-add -L" using subprocess.Popen() python reports back that it cannot connect to the authentication agent.
If I print out os.environ I don't see the "SSH_AUTH_SOCK" being set.
So, normal ssh works fine, through pycharm it does not. I've tried this in two completely separate environments. The only thing common is my local MacOS laptop and pycharm. But with ssh working from my laptop and pycharm not...it seems this may be an issue with pycharm or its interpretation of some subsystem that I'm unable to trace down.
It's been a couple weeks since I worked on these tools so I don't know if Pycharm has been updated in that time. It's largely likely that this isn't specifically a pycharm issue, but something else. I need some help in figuring out what though since my dev workflow is now no longer working.
Happy to post any additional output, troubleshooting, logs, whatever, just let me know what's needed.