open-remote-ssh icon indicating copy to clipboard operation
open-remote-ssh copied to clipboard

vague error "Error resolving authority"

Open simonLeary42 opened this issue 1 year ago • 1 comments

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?

simonLeary42 avatar Apr 01 '24 17:04 simonLeary42

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

jeanp413 avatar Apr 02 '24 04:04 jeanp413