@@ -190,7 +190,7 @@ func (s *Server) Handshake(session *ssh.PipeSession) error {
190
190
return err
191
191
}
192
192
}
193
- // Stage 1: Get publickey or keyboard-interactive answers, and authenticate the user with with API
193
+ // Stage 1: Authenticate the user with API
194
194
auth_requests:
195
195
for {
196
196
authReq , err := session .Downstream .ReadAuthRequest (true )
@@ -251,7 +251,7 @@ auth_requests:
251
251
case 401 :
252
252
if len (resp .Challenges ) == 0 {
253
253
// 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
255
255
session .Downstream .WriteAuthFailure ([]string {"publickey" , "keyboard-interactive" }, false )
256
256
continue auth_requests
257
257
}
@@ -338,7 +338,7 @@ auth_requests:
338
338
if err != nil {
339
339
return err
340
340
}
341
- // For the first auth fail, we mark it partial succss
341
+ // For the first auth fail, we mark it as partial success
342
342
if ! res .Success {
343
343
err = session .Downstream .WriteAuthFailure (removePublicKeyMethod (res .Methods ), true )
344
344
} else {
@@ -350,7 +350,7 @@ auth_requests:
350
350
if res .Success {
351
351
return nil
352
352
}
353
- // Finally, pipe downstream and upstream's auth request and result
353
+ // Finally, pipe downstream and upstream's auth requests and results
354
354
// Note that publickey auth cannot be used anymore after this point
355
355
for {
356
356
req , err := session .Downstream .ReadAuthRequest (true )
0 commit comments