Skip to content
This repository has been archived by the owner on Sep 28, 2024. It is now read-only.

VSCode extension incorrectly reports SSH agent is not running #136

Open
regner opened this issue Aug 5, 2023 · 1 comment
Open

VSCode extension incorrectly reports SSH agent is not running #136

regner opened this issue Aug 5, 2023 · 1 comment

Comments

@regner
Copy link

regner commented Aug 5, 2023

🐛 Bug description

I use the 1Password SSH agent locally for handling all my SSH keys. To use the 1Password SSH agent I have to disable and stop the default SSH agent service. When connecting to a Hocus workspace I get a prompt that my SSH agent is not running.

image

Source:

// The ssh agent is a global windows service

1Password docs: https://developer.1password.com/docs/ssh/get-started/#step-3-turn-on-the-1password-ssh-agent

It may make more sense to check ssh-add -l on Windows to see if a valid SSH agent is running. Here I run that command with the 1Password SSH agent enabled, and then again after disabling the SSH agent:

PS C:\Users\user> ssh-add -l
256 SHA256:.... SSH Key Name One (ED25519)
256 SHA256:.... SSH Key Name Two (ED25519)
PS C:\Users\user> ssh-add -l
Error connecting to agent: No such file or directory
PS C:\Users\user>

Environment

  • Hocus extension: v0.0.8
@gorbak25
Copy link
Member

gorbak25 commented Aug 7, 2023

@regner Thank you for reporting :) What you suggest makes sense, Will make a PR today.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants