Skip to content

Commit 8256e73

Browse files
committed
Fix typos in comments
1 parent e575731 commit 8256e73

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

sshmux.go

+4-4
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ func (s *Server) Handshake(session *ssh.PipeSession) error {
190190
return err
191191
}
192192
}
193-
// Stage 1: Get publickey or keyboard-interactive answers, and authenticate the user with with API
193+
// Stage 1: Authenticate the user with API
194194
auth_requests:
195195
for {
196196
authReq, err := session.Downstream.ReadAuthRequest(true)
@@ -251,7 +251,7 @@ auth_requests:
251251
case 401:
252252
if len(resp.Challenges) == 0 {
253253
// The API server is requesting no challenges, which is abnormal and will
254-
// likely lead to an infinite loop. Silently fail in such case.
254+
// likely lead to an infinite loop
255255
session.Downstream.WriteAuthFailure([]string{"publickey", "keyboard-interactive"}, false)
256256
continue auth_requests
257257
}
@@ -338,7 +338,7 @@ auth_requests:
338338
if err != nil {
339339
return err
340340
}
341-
// For the first auth fail, we mark it partial succss
341+
// For the first auth fail, we mark it as partial success
342342
if !res.Success {
343343
err = session.Downstream.WriteAuthFailure(removePublicKeyMethod(res.Methods), true)
344344
} else {
@@ -350,7 +350,7 @@ auth_requests:
350350
if res.Success {
351351
return nil
352352
}
353-
// Finally, pipe downstream and upstream's auth request and result
353+
// Finally, pipe downstream and upstream's auth requests and results
354354
// Note that publickey auth cannot be used anymore after this point
355355
for {
356356
req, err := session.Downstream.ReadAuthRequest(true)

0 commit comments

Comments
 (0)