Skip to content

SSH explorer can't determine user from match block #11063

Open
@legowerewolf

Description

@legowerewolf

1Password's SSH Bookmarks feature creates SSH config entries that look like this:

# 1Password Item: wo-mac
Match Host wo-mac.taila0f8a.ts.net User user
  IdentitiesOnly yes
  IdentityFile ~/.ssh/1Password/SHA256_Oec5X91ZYb6AkJnsW83vMmYsTy2dDRvWqygTkMoBsQE.pub

The SSH remote explorer in VS Code does not detect the configured user "user", and using the remote explorer to connect fails because SSH can't determine which key to use just from the host - the match block isn't satisfied, so it doesn't get the instruction to use a particular IdentityFile.

Metadata

Metadata

Assignees

Labels

bugIssue identified by VS Code Team member as probable bugsshIssue in vscode-remote SSH

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions