{"record":{"id":"b0c5642fe05f27bb","repo":"juanfont/headscale","slug":"ssh-action-noise-session-machine-key-does-not-mat","errorCode":null,"errorMessage":"ssh action: noise session machine key does not match dst node","messagePattern":"ssh action: noise session machine key does not match dst node","errorType":"http","errorClass":null,"httpStatus":null,"severity":"error","filePath":"hscontrol/noise.go","lineNumber":43,"sourceCode":"\t\"tailscale.com/types/key\"\n)\n\n// ErrUnsupportedClientVersion is returned when a client connects with an unsupported protocol version.\nvar ErrUnsupportedClientVersion = errors.New(\"unsupported client version\")\n\n// ErrMissingURLParameter is returned when a required URL parameter is not provided.\nvar ErrMissingURLParameter = errors.New(\"missing URL parameter\")\n\n// ErrNoAuthSession is returned when an auth_id does not match any active auth session.\nvar ErrNoAuthSession = errors.New(\"no auth session found\")\n\n// ErrSSHDstNodeNotFound is returned when the dst node id on a Noise SSH\n// action request does not match any registered node.\nvar ErrSSHDstNodeNotFound = errors.New(\"ssh action: unknown dst node id\")\n\n// ErrSSHMachineKeyMismatch is returned when the Noise session's machine\n// key does not match the dst node referenced in the SSH action URL.\nvar ErrSSHMachineKeyMismatch = errors.New(\n\t\"ssh action: noise session machine key does not match dst node\",\n)\n\n// ErrSSHAuthSessionNotBound is returned when an SSH action follow-up\n// references an auth session that is not bound to an SSH check pair.\nvar ErrSSHAuthSessionNotBound = errors.New(\n\t\"ssh action: cached auth session is not an SSH-check binding\",\n)\n\n// ErrSSHBindingMismatch is returned when an SSH action follow-up's\n// (src, dst) pair does not match the cached binding for its auth_id.\nvar ErrSSHBindingMismatch = errors.New(\n\t\"ssh action: cached binding does not match request src/dst\",\n)\n\nconst (\n\t// ts2021UpgradePath is the path that the server listens on for the WebSockets upgrade.\n\tts2021UpgradePath = \"/ts2021\"","sourceCodeStart":25,"sourceCodeEnd":61,"githubUrl":"https://github.com/juanfont/headscale/blob/565fd254d06c4c7f9a8cad1714a43445c79ba420/hscontrol/noise.go#L25-L61","documentation":"Error \"ssh action: noise session machine key does not match dst node\" thrown in juanfont/headscale.","triggerScenarios":"Thrown at hscontrol/noise.go:43 when the library encounters an invalid state.","commonSituations":"The noise session's machine key does not match the recorded machine key of the SSH destination node. Re-register the destination node so its keys are consistent.","solutions":["Inspect the wrapped error for the underlying cause and correct the failing condition (ssh action); retry the operation after fixing the input, configuration, or environment."],"exampleFix":"Inspect the wrapped error for the underlying cause and correct the failing condition (ssh action); retry the operation after fixing the input, configuration, or environment.","handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"565fd254d06c4c7f9a8cad1714a43445c79ba420","analyzedAt":"2026-08-15T13:12:30.133Z","schemaVersion":2},"datasetVersion":"2026-08-15T22:17:37.221Z"}