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

vague error "Error resolving authority" #146

Open
simonLeary42 opened this issue Apr 1, 2024 · 1 comment
Open

vague error "Error resolving authority" #146

simonLeary42 opened this issue Apr 1, 2024 · 1 comment

Comments

@simonLeary42
Copy link

Here is my error message:

[Info  - 17:24:48.514] Resolving ssh remote authority 'ssh-remote+<my-host>' (attemp #1)
[Trace  - 17:24:48.527] Identity keys:
None
[Info  - 17:24:48.901] Trying no-auth authentication
[Error  - 17:24:49.49] Error resolving authority
Error: All configured authentication methods failed
	at me (/Users/simon/.vscode-oss/extensions/jeanp413.open-remote-ssh-0.0.45-universal/out/extension.js:1:155838)
	at /Users/simon/.vscode-oss/extensions/jeanp413.open-remote-ssh-0.0.45-universal/out/extension.js:1:409472
	at authHandler (/Users/simon/.vscode-oss/extensions/jeanp413.open-remote-ssh-0.0.45-universal/out/extension.js:1:404849)
	at Se (/Users/simon/.vscode-oss/extensions/jeanp413.open-remote-ssh-0.0.45-universal/out/extension.js:1:159056)
	at USERAUTH_FAILURE (/Users/simon/.vscode-oss/extensions/jeanp413.open-remote-ssh-0.0.45-universal/out/extension.js:1:147859)
	at 51 (/Users/simon/.vscode-oss/extensions/jeanp413.open-remote-ssh-0.0.45-universal/out/extension.js:1:311872)
	at e.exports.M (/Users/simon/.vscode-oss/extensions/jeanp413.open-remote-ssh-0.0.45-universal/out/extension.js:1:178401)
	at H.decrypt (/Users/simon/.vscode-oss/extensions/jeanp413.open-remote-ssh-0.0.45-universal/out/extension.js:1:274737)
	at e.exports.F [as _parse] (/Users/simon/.vscode-oss/extensions/jeanp413.open-remote-ssh-0.0.45-universal/out/extension.js:1:177925)
	at e.exports.parse (/Users/simon/.vscode-oss/extensions/jeanp413.open-remote-ssh-0.0.45-universal/out/extension.js:1:182312)
	at Socket.<anonymous> (/Users/simon/.vscode-oss/extensions/jeanp413.open-remote-ssh-0.0.45-universal/out/extension.js:1:154578)
	at Socket.emit (node:events:514:28)
	at Socket.emit (node:domain:489:12)
	at addChunk (node:internal/streams/readable:324:12)
	at readableAddChunk (node:internal/streams/readable:297:9)
	at Socket.push (node:internal/streams/readable:234:10)
	at TCP.onStreamRead (node:internal/stream_base_commons:190:23)

The fix for me is to add my key to my SSH agent. After adding my key:

[Info  - 17:27:55.265] Resolving ssh remote authority 'ssh-remote+ansible' (attemp #1)
[Trace  - 17:27:55.278] Identity keys:
<my-key-fingerprint>
[Info  - 17:27:55.628] Trying no-auth authentication
[Info  - 17:27:55.741] Trying publickey authentication: <my-key-fingerprint>
[Trace  - 17:27:56.937] Server install command:
...

"Error resolving authority" makes me think of DNS. Can someone with context in the source code explain what "error resolving authority" really means?

@jeanp413
Copy link
Owner

jeanp413 commented Apr 2, 2024

authority refers to the authority component of the uri the current vscode window is opening

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

No branches or pull requests

2 participants