Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get agent from environment #29

Open
PaulPrice opened this issue Aug 25, 2018 · 4 comments · May be fixed by #65
Open

Get agent from environment #29

PaulPrice opened this issue Aug 25, 2018 · 4 comments · May be fixed by #65

Comments

@PaulPrice
Copy link

There is a configuration option to specify an agent (thanks!), but it appears to require a hardcoded path to the socket, which may change after restarting the agent. However, the agent socket is usually available in the SSH_AUTH_SOCK environment variable.

Please add an option to retrieve the path to the agent socket from the environment.

@PaulPrice
Copy link
Author

Begging your pardon, but that doesn't work. Here's the log:

[trace] stat /.vscode
[error] Error: connect ENOENT $SSH_AUTH_SOCK
	at Object._errnoException (util.js:1024:11)
	at _exceptionWithHostPort (util.js:1046:20)
	at PipeConnectWrap.afterConnect [as oncomplete] (net.js:1182:14)
[trace] stat /
[error] Error: connect ENOENT $SSH_AUTH_SOCK
	at Object._errnoException (util.js:1024:11)
	at _exceptionWithHostPort (util.js:1046:20)
	at PipeConnectWrap.afterConnect [as oncomplete] (net.js:1182:14)
[trace] stat /
[error] Error: connect ENOENT $SSH_AUTH_SOCK
	at Object._errnoException (util.js:1024:11)
	at _exceptionWithHostPort (util.js:1046:20)
	at PipeConnectWrap.afterConnect [as oncomplete] (net.js:1182:14)
[trace] stat /
[error] Error: connect ENOENT $SSH_AUTH_SOCK
	at Object._errnoException (util.js:1024:11)
	at _exceptionWithHostPort (util.js:1046:20)
	at PipeConnectWrap.afterConnect [as oncomplete] (net.js:1182:14)
[trace] stat /
[error] Error: connect ENOENT $SSH_AUTH_SOCK
	at Object._errnoException (util.js:1024:11)
	at _exceptionWithHostPort (util.js:1046:20)
	at PipeConnectWrap.afterConnect [as oncomplete] (net.js:1182:14)

@liximomo liximomo reopened this Aug 25, 2018
@liximomo
Copy link
Owner

Sorry. Coming soon.

@gt945
Copy link

gt945 commented Dec 29, 2018

Need this feature too, hope you can implement it ASAP

@diego898
Copy link

Bump!

@gt945 gt945 linked a pull request Jun 22, 2019 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants