[Remote-SSH Bug]: SSH_AUTH_SOCK
is getting stale over time
#9819
Labels
ssh
Issue in vscode-remote SSH
SSH_AUTH_SOCK
is getting stale over time
#9819
Is there an existing issue for this bug?
Required Troubleshooting Steps
remote.SSH.useLocalServer
settingConnect Locally
It connects successfully
->
Over time (I presume when the system goes to sleep and ssh connection to the remote gets disconnected), the ssh agent socket file -
$SSH_AUTH_SOCK
- starts to point to a non-existing file.Example:
This, in its turn, makes the SSH agent unavailable in the remote system and the only workaround is to "kill the remote server" which is very annoying.
Expected Behavior
SSH_AUTH_SOCK
refreshes when the remote is reconnected.Steps To Reproduce
file $SSH_AUTH_SOCK
resolves to an existing fileRemote-SSH Log
Remote-SSH Log
Anything else?
Related issue - #9767 - was closed because of the workaround, but doesn't actually provided a long term fix.
This issue is meant to track the cause of the issue.
/cc @danielhass
The text was updated successfully, but these errors were encountered: