MCPcopy Create free account
hub / github.com/Thunder-Compute/thunder-cli / IsAuthError

Function IsAuthError

utils/ssh.go:669–679  ·  view source on GitHub ↗
(err error)

Source from the content-addressed store, hash-verified

667}
668
669func IsAuthError(err error) bool {
670 if err == nil {
671 return false
672 }
673 errMsg := strings.ToLower(err.Error())
674 return messageContainsAny(errMsg,
675 "unable to authenticate",
676 "no supported methods remain",
677 "ssh: handshake failed",
678 )
679}
680
681// IsKeyParseError checks if the error is due to a corrupt or invalid private key file
682func IsKeyParseError(err error) bool {

Callers 2

runConnectWithOptionsFunction · 0.92
ClassifySSHErrorFunction · 0.85

Calls 2

messageContainsAnyFunction · 0.85
ErrorMethod · 0.45

Tested by

no test coverage detected