microsoft / microsoft/vscode-remote-release

[Remote-SSH Bug]: Session keyring corrupted by remote-ssh, breaks azcopy

Open
#8,912 12 comments 33 reactions 1 assignee View on GitHub

@roblourens is already working on this.

Since Sep 3, 2023.

feature-request ssh
Dominant language
Dockerfile
Stars
4.2k
Forks
470
Avg merge
1d 1h
Merged PRs (30d)
1

Description

Is there an existing issue for this bug?
  • I have searched the existing issues
Required Troubleshooting Steps
  • I have followed these troubleshooting steps
  • I have tried both values of the remote.SSH.useLocalServer setting
Connect Locally

It connects successfully

->

No response

Expected Behavior

When using Remote-SSH I cannot use tools like azcopy which depend on having a keyring session in place. I can work around by using keyctl to create a new session, but this doesn't work when running powershell scripts.

Steps To Reproduce

I'm connecting to a RHEL 7 machine. All default settings. When I use ssh outside of VS Code I have no problems.

Outside of VS Code:

$ keyctl show
Session Keyring
1029758406 --alswrv   1000  1000  keyring: _ses
 182756408 --alswrv   1000 65534   \_ keyring: _uid.1000

In VS Code:

$ keyctl show
Session Keyring
Unable to dump key: Key has been revoked
Remote-SSH Log
Remote-SSH Log

[08:02:36.160] Log Level: 2
[08:02:36.191] VS Code version: 1.81.1
[08:02:36.191] Remote-SSH version: remote-ssh@0.105.2023080715
[08:02:36.191] win32 x64

I removed the ConfigFileWatcher entries at the end of the log as they show details I'd rather not share and don't pertain to this issue.

Anything else?

vscode-server-logs.zip

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.