diff --git a/backend/app/service/ssh.go b/backend/app/service/ssh.go index b4f2d6e2f..946f265f8 100644 --- a/backend/app/service/ssh.go +++ b/backend/app/service/ssh.go @@ -626,7 +626,7 @@ func loadFailedSecureDatas(line string) dto.SSHHistory { return data } index := 0 - if strings.Contains("line", " invalid user") { + if strings.Contains(line, " invalid user") { index = 2 } data = dto.SSHHistory{