We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 141f286 commit c9cf5eeCopy full SHA for c9cf5ee
components/ws-proxy/pkg/sshproxy/server.go
@@ -166,7 +166,9 @@ func ReportSSHAttemptMetrics(err error) {
166
return
167
}
168
errorType := "OTHERS"
169
- if serverAuthErr, ok := err.(ssh.ServerAuthError); ok && len(serverAuthErr.Errors) > 0 {
+ if serverAuthErr, ok := err.(*ssh.ServerAuthError); ok && len(serverAuthErr.Errors) > 0 {
170
+ fmt.Println(serverAuthErr, "-=======")
171
+ fmt.Println(serverAuthErr.Errors, "-=======")
172
if authErr, ok := serverAuthErr.Errors[len(serverAuthErr.Errors)-1].(SSHError); ok {
173
errorType = authErr.ShortName()
174
0 commit comments